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

Commit

Permalink
Browse files Browse the repository at this point in the history
- Trailing whitespace
  • Loading branch information
weierophinney committed Jan 21, 2013
1 parent b2c77fa commit 37ea59a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function setInvokableClass($name, $invokableClass, $shared = null)
}
$this->unregisterService($cName);
}

if ($shared === null) {
$shared = $this->shareByDefault();
}
Expand Down Expand Up @@ -280,7 +280,7 @@ public function setFactory($name, $factory, $shared = null)
if ($shared === null) {
$shared = $this->shareByDefault();
}

$this->factories[$cName] = $factory;
$this->shared[$cName] = (bool) $shared;

Expand Down Expand Up @@ -378,7 +378,7 @@ public function setService($name, $service, $shared = null)
if ($shared === null) {
$shared = $this->shareByDefault();
}

$this->instances[$cName] = $service;
$this->shared[$cName] = (bool) $shared;
return $this;
Expand Down
2 changes: 1 addition & 1 deletion test/ServiceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function testGetUsesIndivualSharedSettingWhenSetAndDeviatesFromShareByDef
$this->serviceManager->setInvokableClass('foo', 'ZendTest\ServiceManager\TestAsset\Foo');
$this->serviceManager->setShared('foo', true);
$this->assertSame($this->serviceManager->get('foo'), $this->serviceManager->get('foo'));

$this->serviceManager->setShareByDefault(true);
$this->serviceManager->setInvokableClass('foo', 'ZendTest\ServiceManager\TestAsset\Foo');
$this->serviceManager->setShared('foo', false);
Expand Down

0 comments on commit 37ea59a

Please sign in to comment.