| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function __construct(Traversable $objects) |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Test this is an outer iterator. |
||
| 27 | */ |
||
| 28 | static::testOuterIterator($this); |
||
| 29 | $arr = []; |
||
| 30 | foreach ($objects as $key => $object) { |
||
| 31 | $arr[$key] = $object; |
||
| 32 | } |
||
| 33 | |||
| 34 | parent::__construct(new SplFixedArray(count($arr))); |
||
| 35 | |||
| 36 | foreach ($arr as $index => $obj) { |
||
| 37 | $this->append($obj, $index); |
||
| 38 | } |
||
| 39 | $this->getStorage()->rewind(); |
||
| 40 | } |
||
| 41 | |||
| 57 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.