Skip to content

Commit

Permalink
zendframework#6266 - CS - alignment of braces/array syntax in closure…
Browse files Browse the repository at this point in the history
… definitions
  • Loading branch information
Ocramius committed May 20, 2014
1 parent 66df16a commit 78134fb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/ZendTest/Mvc/Service/ServiceManagerConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testCanMergeCustomConfigWithDefaultConfig()
'foo' => '\stdClass',
),
'factories' => array(
'bar' => function($sm) {
'bar' => function () {
return new \stdClass();
},
),
Expand All @@ -69,7 +69,7 @@ public function testCanOverrideDefaultConfigWithCustomConfig()
'foo' => '\stdClass',
),
'factories' => array(
'ModuleManager' => function($sm) {
'ModuleManager' => function () {
return new \stdClass();
},
),
Expand All @@ -92,16 +92,15 @@ public function testCanAddDelegators()
'foo' => '\stdClass',
),
'delegators' => array(
'foo' => array(function(ServiceLocatorInterface $serviceLocator,
$name,
$requestedName,
$callback) {
'foo' => array(
function (ServiceLocatorInterface $serviceLocator, $name, $requestedName, $callback) {
$service = $callback();
$service->bar = 'baz';

return $service;
},
)),
)
),
);

$config = new ServiceManagerConfig($config);
Expand Down

0 comments on commit 78134fb

Please sign in to comment.