| Total Complexity | 9 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class NpcShipHandling implements ManagerComponentInterface, UserTickComponentInterface |
||
| 13 | { |
||
| 14 | public function __construct(private ShipRepositoryInterface $shipRepository, private ShipWrapperFactoryInterface $shipWrapperFactory) |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @deprecated |
||
| 20 | */ |
||
| 21 | #[Override] |
||
| 22 | public function work(): void |
||
| 23 | { |
||
| 24 | foreach ($this->shipRepository->getNpcShipsForTick() as $ship) { |
||
| 25 | $this->processShip($ship); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | #[Override] |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | private function processShip(ShipInterface $ship): void |
||
| 59 |
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