| Total Complexity | 7 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 15.38% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class EffectHandling implements EffectHandlingInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param array<string, EffectHandlerInterface> $handlerList |
||
| 19 | */ |
||
| 20 | 1 | public function __construct( |
|
| 21 | private array $handlerList |
||
| 22 | 1 | ) {} |
|
| 23 | |||
| 24 | #[Override] |
||
| 25 | public function handleSpacecraftTick(SpacecraftWrapperInterface $wrapper, InformationInterface $information): void |
||
| 26 | { |
||
| 27 | foreach ($wrapper->get()->getLocation()->getFieldType()->getEffects() as $effect) { |
||
| 28 | $this->getHandler($effect)->handleSpacecraftTick($wrapper, $information); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | #[Override] |
||
| 33 | public function handleIncomingSpacecraft(SpacecraftWrapperInterface $wrapper, MessageCollectionInterface $messages): void |
||
| 34 | { |
||
| 35 | foreach ($wrapper->get()->getLocation()->getFieldType()->getEffects() as $effect) { |
||
| 36 | $this->getHandler($effect)->handleIncomingSpacecraft($wrapper, $messages); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | private function getHandler(FieldTypeEffectEnum $effect): EffectHandlerInterface |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths