Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
11 | public function __construct(\Traversable $iterator, iterable $indexes) |
||
12 | 3 | { |
|
13 | 3 | if ($indexes instanceof \Traversable) { |
|
14 | 3 | $indexes = iterator_to_array(new \IteratorIterator($indexes), false); |
|
15 | } |
||
16 | 3 | sort($indexes); |
|
17 | $this->indexingIterator = new \ArrayIterator($indexes); |
||
18 | 3 | ||
19 | 3 | $iterator = $iterator instanceof \Countable ? $iterator : new CountableIterator($iterator, CountableIterator::CACHE_COUNT); |
|
20 | 3 | parent::__construct($iterator); |
|
21 | 3 | } |
|
22 | |||
50 |
This check marks private properties in classes that are never used. Those properties can be removed.