This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function resetPersistentParameters($args) | |
{ | |
$rc = new Nette\Application\UI\PresenterComponentReflection($this); | |
$propertyValues = $rc->getDefaultProperties(); | |
foreach ($rc->getPersistentParams() as $param => $def) { | |
if (!array_key_exists($param, $args) && array_key_exists($param, $propertyValues)) { | |
$args[$param] = $propertyValues[$param]; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types = 1); | |
namespace AppTests\PhpStan\NextrasOrm; | |
use Nextras\Orm\Entity\Entity; | |
use PhpParser\Node; | |
use PhpParser\Node\Expr\MethodCall; | |
use PHPStan\Analyser\Scope; | |
use PHPStan\Broker\Broker; | |
use PHPStan\Rules\Rule; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types = 1); | |
namespace App\Core\Latte; | |
use App\ImplementationException; | |
use Latte\Compiler; | |
use Latte\MacroNode; | |
use Latte\Macros\MacroSet; | |
use Latte\PhpWriter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types = 1); | |
namespace App\Core\Orm; | |
use MabeEnum\Enum; | |
use Nextras\Orm\Entity\IEntity; | |
use Nextras\Orm\Entity\IPropertyContainer; | |
use Nextras\Orm\Entity\Reflection\PropertyMetadata; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = 1; | |
var_dump($a); //prints 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.highlight, .blob-code { | |
tab-size: 4 !important; | |
} | |
.repo-list .repo-list-item { | |
padding-top: 3px; | |
padding-bottom: 5px; | |
} | |
.repo-list .repo-list-meta { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function tryCall($method, array $params) | |
{ | |
$type = substr($method, 0, 6); | |
if ($type === 'action') { | |
$this->evm->dispatchEvent(get_class($this) . '::onBeforeAction', new EventArgsList([$this, $this->action])); | |
} elseif ($type === 'render') { | |
$this->evm->dispatchEvent(get_class($this) . '::onBeforeRender', new EventArgsList([$this, $this->view])); | |
} | |
$result = parent::tryCall($method, $params); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Praha: http://srazy.info/nettefwpivo | |
- Brno: http://srazy.info/nettefwbrnopivo | |
- České Budějovice: http://srazy.info/nettefwcbpivo | |
- Smilovice: http://srazy.info/nettefwsmilovicepivo | |
- Plzeň: http://srazy.info/nettefwplzenpivo | |
- Hradec Králové: http://srazy.info/nettehkpivo | |
- Chrudim: http://srazy.info/nettefwchrudimpivo | |
- Pardubice: http://srazy.info/nettefwpardubicepivo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SessionCleanerListener implements Kdyby\Events\Subscriber | |
{ | |
private $session; | |
public function __construct(Nette\Http\Session $session) | |
{ | |
$this->session = $session; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CategorySpecification | |
{ | |
private $category; | |
public function __construct($category) | |
{ | |
$this->category = $category; | |
} | |
NewerOlder