| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 2 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | #[Override]  | 
            ||
| 20 | public function cancelRetrofit(Ship $ship): bool  | 
            ||
| 21 |     { | 
            ||
| 22 | $state = $ship->getState();  | 
            ||
| 23 |         if ($state === SpacecraftStateEnum::RETROFIT) { | 
            ||
| 24 | 2 | $this->setStateNoneAndSave($ship);  | 
            |
| 25 | |||
| 26 | $this->colonyShipQueueRepository->truncateByShip($ship->getId());  | 
            ||
| 27 | |||
| 28 | return true;  | 
            ||
| 29 | 2 | }  | 
            |
| 30 | |||
| 31 | return false;  | 
            ||
| 32 | 7 | }  | 
            |
| 40 | 
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