diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-05-22 01:24:11 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-14 01:45:23 +0200 |
commit | 6e478862273946a2088ff3b672ef64034473bcf3 (patch) | |
tree | 63318395271b8960f30d60ad91aa5b7380e22fb8 /phpBB/phpbb/di/service_collection_iterator.php | |
parent | bea9372efa650bd97f5b63c23f392bacd56de219 (diff) | |
download | forums-6e478862273946a2088ff3b672ef64034473bcf3.tar forums-6e478862273946a2088ff3b672ef64034473bcf3.tar.gz forums-6e478862273946a2088ff3b672ef64034473bcf3.tar.bz2 forums-6e478862273946a2088ff3b672ef64034473bcf3.tar.xz forums-6e478862273946a2088ff3b672ef64034473bcf3.zip |
[ticket/12575] Remove inline assignments
PHPBB3-12575
Diffstat (limited to 'phpBB/phpbb/di/service_collection_iterator.php')
-rw-r--r-- | phpBB/phpbb/di/service_collection_iterator.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/di/service_collection_iterator.php b/phpBB/phpbb/di/service_collection_iterator.php index 93f74adca9..a6cb0e6c3e 100644 --- a/phpBB/phpbb/di/service_collection_iterator.php +++ b/phpBB/phpbb/di/service_collection_iterator.php @@ -39,7 +39,8 @@ class service_collection_iterator extends \ArrayIterator */ public function offsetGet($index) { - if (($task = parent::offsetGet($index)) == null) + $task = parent::offsetGet($index); + if ($task == null) { $task = $this->container->get($index); $this->offsetSet($index, $task); @@ -61,7 +62,8 @@ class service_collection_iterator extends \ArrayIterator */ public function current() { - if (($task = parent::current()) == null) + $task = parent::current(); + if ($task == null) { $name = $this->key(); $task = $this->container->get($name); |