Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | 3 | public static function error(string $message, ?int $code = null, $data = null): PayloadInterface |
|
49 | { |
||
50 | 3 | $payload = (new Payload()) |
|
51 | 3 | ->setStatus(Status::ERROR) |
|
52 | 3 | ->setMessage($message); |
|
53 | 3 | if ($code !== null) { |
|
54 | 2 | $payload->setCode($code); |
|
55 | } |
||
56 | 3 | if ($data !== null) { |
|
57 | 1 | $payload->setData($data); |
|
58 | } |
||
59 | |||
60 | 3 | return $payload; |
|
61 | } |
||
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