mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/12575] Do not duplicate logic in service_collection_iterator.
PHPBB3-12575
This commit is contained in:
parent
f460287856
commit
2149bd4e8f
1 changed files with 1 additions and 9 deletions
|
@ -41,14 +41,6 @@ class service_collection_iterator extends \ArrayIterator
|
|||
*/
|
||||
public function current()
|
||||
{
|
||||
$task = parent::current();
|
||||
if ($task === null)
|
||||
{
|
||||
$name = $this->key();
|
||||
$task = $this->collection->offsetGet($name);
|
||||
$this->offsetSet($name, $task);
|
||||
}
|
||||
|
||||
return $task;
|
||||
return $this->collection->offsetGet($this->key());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue