Conditions | 5 |
Paths | 6 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
22 | 2 | public function load(array $groups = [], array $excludeGroups = [], array $options = []): void |
|
23 | { |
||
24 | 2 | $fixtures = $this->loader->getFixtures($groups, $excludeGroups); |
|
25 | |||
26 | 2 | foreach ($fixtures as $fixture) { |
|
27 | 2 | $processorOptions = $options[$fixture->getProcessor()] ?: []; |
|
28 | |||
29 | 2 | $this->getProcessor($fixture->getProcessor())->process($fixture, $processorOptions); |
|
30 | } |
||
31 | |||
32 | 2 | foreach ($this->processors as $processor) { |
|
33 | 2 | $processor->flush($options[$fixture->getProcessor()] ?: []); |
|
|
|||
34 | } |
||
35 | 2 | } |
|
36 | |||
46 |
It seems like you are relying on a variable being defined by an iteration: