Conditions | 3 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
29 | 4 | #[Override] |
|
30 | public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise |
||
31 | { |
||
32 | 4 | return $next($request)->then(static function (ResponseInterface $response): ResponseInterface { |
|
33 | 4 | $status = $response->getStatusCode(); |
|
34 | |||
35 | 4 | if ($status >= 400 && $status < 600) { |
|
36 | 2 | throw new RuntimeException($response->getReasonPhrase(), $status); |
|
37 | } |
||
38 | |||
39 | 2 | return $response; |
|
40 | 4 | }); |
|
43 |
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