Conditions | 4 |
Paths | 5 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
17 | public function dump(MessageInterface $message, array $headers): void |
||
18 | { |
||
19 | if (!$this->supports($message)) { |
||
20 | throw new UnsupportedMessage($message, RequestInterface::class); |
||
21 | } |
||
22 | |||
23 | echo "\n"; |
||
24 | |||
25 | printf(self::TEMPLATE, 'Request', "{$message->getMethod()} {$message->getUri()}"); |
||
26 | |||
27 | foreach ($headers as $header) { |
||
28 | printf(self::TEMPLATE, "Request {$header}", $message->getHeaderLine($header)); |
||
29 | } |
||
30 | |||
31 | $body = (string) $message->getBody(); |
||
32 | |||
33 | if (!empty($body)) { |
||
34 | echo "\n{$body}"; |
||
35 | } |
||
36 | |||
37 | echo "\n"; |
||
38 | } |
||
45 |
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