| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 21 | public function reduce($actions = []) : ?array |
|
| 19 | { |
||
| 20 | 21 | foreach ($actions as $action) { |
|
| 21 | 18 | if ($this->context[self::SKIP_REMAINING] ?? false) { |
|
| 22 | 6 | continue; |
|
| 23 | } |
||
| 24 | 15 | $instance = new $action($this->context); |
|
| 25 | 15 | PreProcessor::validate($this, $instance); |
|
| 26 | 9 | $instance->execute(); |
|
| 27 | 9 | PostProcessor::validate($this, $instance); |
|
| 28 | } |
||
| 29 | 12 | return ContextHelper::removeReservedKeys(Organizer::RESERVED_KEYS, $this->context); |
|
| 30 | } |
||
| 32 |