From de0b89a800815d1231efd3da2d048da937091ac9 Mon Sep 17 00:00:00 2001 From: RWOverdijk Date: Thu, 9 Aug 2012 09:11:18 +0200 Subject: [PATCH 1/2] PSR-2 added space after control structure --- src/MemoryManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MemoryManager.php b/src/MemoryManager.php index 60cb252..bbda86f 100644 --- a/src/MemoryManager.php +++ b/src/MemoryManager.php @@ -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]); } From c72da7fcb35dad49864f397f73a7224e295aec02 Mon Sep 17 00:00:00 2001 From: RWOverdijk Date: Thu, 9 Aug 2012 10:56:40 +0200 Subject: [PATCH 2/2] Removed strict true --- src/Container/Movable.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Container/Movable.php b/src/Container/Movable.php index d361f07..12c4f53 100644 --- a/src/Container/Movable.php +++ b/src/Container/Movable.php @@ -76,7 +76,7 @@ public function __construct(Memory\MemoryManager $memoryManager, $id, $value) */ public function lock() { - if (($this->state & self::LOADED) !== true) { + if (!($this->state & self::LOADED)) { $this->memManager->load($this, $this->id); $this->state |= self::LOADED; } @@ -125,7 +125,7 @@ public function __get($property) throw new Exception\InvalidArgumentException('Unknown property: \Zend\Memory\Container\Movable::$' . $property); } - if (($this->state & self::LOADED) !== true) { + if (!($this->state & self::LOADED)) { $this->memManager->load($this, $this->id); $this->state |= self::LOADED; } @@ -163,7 +163,7 @@ public function __set($property, $value) */ public function &getRef() { - if (($this->state & self::LOADED) !== true) { + if (!($this->state & self::LOADED)) { $this->memManager->load($this, $this->id); $this->state |= self::LOADED; } @@ -202,7 +202,7 @@ public function processUpdate() */ public function startTrace() { - if (($this->state & self::LOADED) !== true) { + if (!($this->state & self::LOADED)) { $this->memManager->load($this, $this->id); $this->state |= self::LOADED; }