Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.2098 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 2 | public function parseValue(mixed $value): ?ChronosTime |
|
35 | { |
||
36 | 2 | if (!is_string($value)) { |
|
37 | throw new UnexpectedValueException('Cannot represent value as Chronos time: ' . Utils::printSafe($value)); |
||
38 | } |
||
39 | |||
40 | 2 | if ($value === '') { |
|
41 | return null; |
||
42 | } |
||
43 | |||
44 | 2 | $time = new ChronosTime($value); |
|
45 | |||
46 | 2 | return $time; |
|
47 | } |
||
63 |
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