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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
tr committed Aug 13, 2012
3 parents 7cb373f + d917e2a + e1d5120 commit e375cf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Container/Movable.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct(Memory\MemoryManager $memoryManager, $id, $value)
*/
public function lock()
{
if ( !($this->state & self::LOADED) ) {
if (!($this->state & self::LOADED)) {
$this->memManager->load($this, $this->id);
$this->state |= self::LOADED;
}
Expand Down Expand Up @@ -125,7 +125,7 @@ public function __get($property)
throw new Exception\InvalidArgumentException('Unknown property: \Zend\Memory\Container\Movable::$' . $property);
}

if ( !($this->state & self::LOADED) ) {
if (!($this->state & self::LOADED)) {
$this->memManager->load($this, $this->id);
$this->state |= self::LOADED;
}
Expand Down Expand Up @@ -163,7 +163,7 @@ public function __set($property, $value)
*/
public function &getRef()
{
if ( !($this->state & self::LOADED) ) {
if (!($this->state & self::LOADED)) {
$this->memManager->load($this, $this->id);
$this->state |= self::LOADED;
}
Expand Down Expand Up @@ -202,7 +202,7 @@ public function processUpdate()
*/
public function startTrace()
{
if ( !($this->state & self::LOADED) ) {
if (!($this->state & self::LOADED)) {
$this->memManager->load($this, $this->id);
$this->state |= self::LOADED;
}
Expand Down
2 changes: 1 addition & 1 deletion src/MemoryManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function processUpdate(Container\Movable $container, $id)
}

// Remove just updated object from list of candidates to unload
if( isset($this->unloadCandidates[$id])) {
if ( isset($this->unloadCandidates[$id])) {
unset($this->unloadCandidates[$id]);
}

Expand Down

0 comments on commit e375cf4

Please sign in to comment.