diff --git a/test/AbstractPluginManagerTest.php b/test/AbstractPluginManagerTest.php index 2cf31c4a..d5b017f5 100644 --- a/test/AbstractPluginManagerTest.php +++ b/test/AbstractPluginManagerTest.php @@ -158,7 +158,7 @@ public function testSingleDelegatorUsage() ) ->will($this->returnValue($delegator)); - $pluginManager->setFactory('foo-service', function() use ($realService) { + $pluginManager->setFactory('foo-service', function () use ($realService) { return $realService; }); $pluginManager->addDelegator('foo-service', $delegatorFactory); diff --git a/test/ServiceManagerTest.php b/test/ServiceManagerTest.php index df21072a..871676ea 100644 --- a/test/ServiceManagerTest.php +++ b/test/ServiceManagerTest.php @@ -997,12 +997,12 @@ public function testDelegatorFromCallback() $realService = $this->getMock('stdClass', array(), array(), 'RealService'); $delegator = $this->getMock('stdClass', array(), array(), 'Delegator'); - $delegatorFactoryCallback = function($serviceManager, $cName, $rName, $callback) use ($delegator) { + $delegatorFactoryCallback = function ($serviceManager, $cName, $rName, $callback) use ($delegator) { $delegator->real = call_user_func($callback); return $delegator; }; - $this->serviceManager->setFactory('foo-service', function() use ($realService) { return $realService; } ); + $this->serviceManager->setFactory('foo-service', function () use ($realService) { return $realService; } ); $this->serviceManager->addDelegator('foo-service', $delegatorFactoryCallback); $service = $this->serviceManager->create('foo-service');