| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | } elseif ($handler instanceof Middleware) { |
||
| 39 | return $handler->execute($item, fn ($command) => $command); |
||
|
|
|||
| 40 | } |
||
| 41 | throw new \RuntimeException(sprintf( |
||
| 42 | '%s expects handler to be closure or Middleware', |
||
| 43 | self::class |
||
| 44 | )); |
||
| 45 | } |
||
| 46 | |||
| 47 | private function ensureCommandIsIterable($command): void |
||
| 48 | { |
||
| 58 |