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 Trq; | |
class Foo | |
{ | |
protected function __construct() | |
{ | |
} |
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 Trq; | |
class Foo | |
{ | |
protected function __construct() | |
{ | |
} |
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
public function getRelationById($relation, $id) | |
{ | |
return array_filter($this->{$relation}, function($entity) use ($id) { | |
return $entity->getId() === $id; | |
}); | |
} |
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
function foo() | |
{ | |
if ($something == $something) { | |
// do something | |
return $something_else; | |
} | |
return null; | |
} |
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 Foo\SomeBundle\Service; | |
use Aws\Sns\SnsClient; | |
class Notifications | |
{ | |
/** | |
* @var SnsClient |
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 spec\Opus\Service; | |
use PhpSpec\ObjectBehavior; | |
use Prophecy\Argument; | |
use Opus\Service\Container; | |
use Interop\Container\ContainerInterface; | |
class ContainerSpec extends ObjectBehavior |
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
xdebug.remote_enable=1 | |
xdebug.remote_autostart=1 | |
xdebug.remote_host=10.211.55.2 | |
xdebug.remote_connect_back=1 | |
xdebug.idekey="PHPSTORM-XDEBUG" | |
;xdebug.scream=1 | |
;xdebug.show_exception_trace=1 | |
xdebug.var_display_max_children=128 | |
xdebug.var_display_max_data=512 | |
xdebug.var_display_max_depth=1024 |
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
#!/usr/bin/env bash | |
cd ~/ | |
mkdir -p bin src/{news,trq,utils,thoughtbot} var | |
# install rcm | |
wget https://thoughtbot.github.io/rcm/debs/rcm_1.2.3-1_all.deb | |
sudo dpkg -i rcm_1.2.3-1_all.deb |
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
category_list: | |
path: /{filter}/{category_slug}.{_format} | |
requirements: | |
filter: articles|galleries | |
_format: html|json | |
defaults: | |
_format: html | |
_entity_resolution: | |
strategy: via_section_and_type | |
_response_resolution: |
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 App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Repositories\TaskRepository; | |
class TaskController extends Controller | |
{ |