| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 40 | 8 | protected function prepareNext(): void |
|
| 41 | { |
||
| 42 | 8 | if (!$this->items->valid()) { |
|
| 43 | 2 | return; |
|
| 44 | } |
||
| 45 | |||
| 46 | 6 | $class = $this->items->current(); |
|
| 47 | |||
| 48 | 6 | $entries = i\type_check( |
|
|
1 ignored issue
–
show
|
|||
| 49 | 6 | call_user_func($this->apply, $class), |
|
| 50 | 6 | 'array', |
|
| 51 | 6 | new \UnexpectedValueException("Failed to load container entries for '$class': " |
|
| 52 | 6 | . "Expected array, callback returned %s") |
|
| 53 | ); |
||
| 54 | |||
| 55 | 5 | $this->entries = new \ArrayIterator($entries); |
|
| 56 | |||
| 57 | 5 | $this->items->next(); |
|
| 58 | 5 | } |
|
| 75 |