| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function __construct(Traversable $objects) |
||
| 13 | { |
||
| 14 | static::testOuterIterator($this); |
||
| 15 | $arr = []; |
||
| 16 | foreach ($objects as $object) { |
||
| 17 | $arr[] = $object; |
||
| 18 | } |
||
| 19 | parent::__construct(new SplFixedArray(count($arr))); |
||
| 20 | |||
| 21 | foreach ($arr as $index => $obj) { |
||
| 22 | $this->append($obj, $index); |
||
| 23 | } |
||
| 24 | $this->getStorage()->rewind(); |
||
| 25 | } |
||
| 26 | |||
| 35 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.