| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function __invoke(callable $handler): callable |
||
| 21 | { |
||
| 22 | $logger = $this->logger; |
||
| 23 | |||
| 24 | return static function (callable $handler) use ($logger) { |
||
| 25 | return static function (RequestInterface $request, array $options) use ($handler, $logger) { |
||
| 26 | $promise = $handler($request, $options); |
||
| 27 | |||
| 28 | return $promise->then( |
||
| 29 | function (ResponseInterface $response) use ($request, $logger) { |
||
| 30 | $requestBody = $request->getBody(); |
||
| 31 | $logger->info($requestBody->getContents()); |
||
| 32 | |||
| 33 | $responseBody = $response->getBody(); |
||
| 34 | $logger->info($responseBody->getContents()); |
||
| 35 | |||
| 36 | return $response; |
||
| 37 | } |
||
| 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