Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function render(Model $model)
$event = $this->getEvent();
$event->setModel($model);
$events = $this->getEventManager();
$results = $events->trigger(ViewEvent::EVENT_RENDERER, $event, function($result) {
$results = $events->trigger(ViewEvent::EVENT_RENDERER, $event, function ($result) {
return ($result instanceof Renderer);
});
$renderer = $results->last();
Expand Down
2 changes: 1 addition & 1 deletion test/Helper/Navigation/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function setUp()
'extra_config' => array(
'service_manager' => array(
'factories' => array(
'Config' => function() use ($config) {
'Config' => function () use ($config) {
return array(
'navigation' => array(
'default' => $config->get('nav_test1'),
Expand Down
2 changes: 1 addition & 1 deletion test/PhpRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function testRenderingAllowsVariableSubstitutions()
public function testRenderingFiltersContentWithFilterChain()
{
$expected = 'foo bar baz';
$this->renderer->getFilterChain()->attach(function($content) {
$this->renderer->getFilterChain()->attach(function ($content) {
return str_replace('INJECT', 'bar', $content);
});
$this->renderer->vars()->assign(array('bar' => 'INJECT'));
Expand Down

0 comments on commit bd5af3d

Please sign in to comment.