| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | #[Override] |
||
| 53 | public function apply(SpacecraftWrapperInterface $wrapper): void |
||
| 54 | { |
||
| 55 | $systemData = $wrapper->getWarpDriveSystemData(); |
||
| 56 | if ($systemData === null) { |
||
| 57 | throw new RuntimeException('this should not happen'); |
||
| 58 | } |
||
| 59 | |||
| 60 | if ($systemData->getWarpDrive() > $this->getValue()) { |
||
| 61 | $systemData->setWarpDrive($this->getValue()); |
||
| 62 | } |
||
| 63 | |||
| 64 | $systemData |
||
| 65 | ->setMaxWarpDrive($this->getValue()) |
||
| 66 | ->update(); |
||
| 67 | } |
||
| 69 |
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