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

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
turrsis committed Oct 24, 2013
1 parent a332b9b commit 297a8b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tests/ZendTest/ServiceManager/ServiceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,12 +942,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');
Expand Down

0 comments on commit 297a8b0

Please sign in to comment.