| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 6 | public function handle(array $tiles, Target $target, Step $stepStruct): void |
|
| 24 | { |
||
| 25 | /** @var TileHandlerInterface $tileHandler */ |
||
| 26 | 6 | foreach ($this->tileHandlers as $tileHandler) { |
|
| 27 | 6 | $tile = $tiles[$stepStruct->getCurrentIndex()]; |
|
| 28 | 6 | if (!$tileHandler->supports($tile)) { |
|
| 29 | 6 | continue; |
|
| 30 | } |
||
| 31 | |||
| 32 | 6 | $tileHandler->handle($tiles, $target, $stepStruct); |
|
| 33 | } |
||
| 36 |