<?php
$article->getOne(); $article->one;
$article->getTwo(); $article->two;
$article->getThree(); $article->three;
This file contains 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
{ | |
"functionCalls": [ | |
{ | |
"function": "\\array_diff_assoc", | |
"position": 0 | |
}, | |
{ | |
"function": "\\array_diff_key", | |
"position": 0 | |
}, |
This file contains 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 | |
use Latte; | |
use Latte\Compiler; | |
class RenderBlockHelperMacro extends \Latte\Macros\MacroSet | |
{ | |
public function __construct(Compiler $compiler) | |
{ |
This file contains 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 | |
namespace Kdyby; | |
use Nette; | |
use Nette\Reflection\ClassType; | |
/** |
This file contains 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
#!/bin/bash | |
DOMAIN=www.rohlik.cz | |
REMOTE="upstream" | |
BRANCH="production" | |
REVISION=$(git --git-dir=$SOURCE/.git rev-parse HEAD | cut -c1-7) | |
GIT_MERGE_AUTHOR=$(git --git-dir=$SOURCE/.git --no-pager show -s --format='%an' $(git --git-dir=$SOURCE/.git rev-parse HEAD)) | |
function json_escape() { |
This file contains 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 | |
use Kdyby; | |
use Kdyby\RabbitMq\Connection; | |
use Kdyby\RabbitMq\DI\RabbitMqExtension; | |
use Nette; | |
use Nette\Reflection\ClassType; | |
use PhpAmqpLib\Message\AMQPMessage; | |
use Tester; |
This file contains 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 | |
abstract class BaseModel extends Nette\Object | |
{ | |
/** @var NotORM */ | |
protected $connection; | |
/** |
This file contains 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 | |
use Nette\Application\Routers\RouteList, | |
Nette\Application\Routers\Route, | |
Nette\Application\Routers\SimpleRouter; | |
use Nette\Utils\Strings; | |
/** | |
* Router factory. |
This file contains 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 | |
/** | |
* This file is part of the Kdyby (http://www.kdyby.org) | |
* | |
* Copyright (c) 2008, 2012 Filip Procházka (filip@prochazka.su) | |
* | |
* For the full copyright and license information, please view the file license.txt that was distributed with this source code. | |
*/ |
This file contains 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 | |
// .phpstorm.meta.php | |
namespace NEON_META { // we want to avoid the pollution | |
$CONFIG_KEYS = [ | |
'dibi' => [ 'host' => '', 'dbname' => '', 'user' => '', 'password' => '' ], // unobstrusive static definition | |
'nette' => \Nette\Config\Extensions\NetteExtension::$defaults, // no problem the property is actually not static | |
'nette' => [ | |
'session' => [ |