From 78134fb715d3daa6fa1642c744f38248da797f10 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 20 May 2014 10:37:20 +0200 Subject: [PATCH] #6266 - CS - alignment of braces/array syntax in closure definitions --- .../Mvc/Service/ServiceManagerConfigTest.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/ZendTest/Mvc/Service/ServiceManagerConfigTest.php b/tests/ZendTest/Mvc/Service/ServiceManagerConfigTest.php index 33d1c1ce3af..480ff90d355 100644 --- a/tests/ZendTest/Mvc/Service/ServiceManagerConfigTest.php +++ b/tests/ZendTest/Mvc/Service/ServiceManagerConfigTest.php @@ -47,7 +47,7 @@ public function testCanMergeCustomConfigWithDefaultConfig() 'foo' => '\stdClass', ), 'factories' => array( - 'bar' => function($sm) { + 'bar' => function () { return new \stdClass(); }, ), @@ -69,7 +69,7 @@ public function testCanOverrideDefaultConfigWithCustomConfig() 'foo' => '\stdClass', ), 'factories' => array( - 'ModuleManager' => function($sm) { + 'ModuleManager' => function () { return new \stdClass(); }, ), @@ -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);