Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function profile() : \Closure |
||
28 | { |
||
29 | $stopwatch = $this->stopwatch; |
||
30 | |||
31 | return function (callable $handler) use ($stopwatch) { |
||
32 | |||
33 | return function ($request, array $options) use ($handler, $stopwatch) { |
||
34 | $event = $stopwatch->start( |
||
35 | sprintf('%s %s', $request->getMethod(), $request->getUri()), |
||
36 | 'eight_points_guzzle' |
||
37 | ); |
||
38 | |||
39 | return $handler($request, $options)->then( |
||
40 | |||
41 | function ($response) use ($event) { |
||
42 | $event->stop(); |
||
43 | |||
44 | return $response; |
||
45 | }, |
||
46 | |||
47 | function ($reason) use ($event) { |
||
48 | $event->stop(); |
||
49 | |||
50 | return \GuzzleHttp\Promise\rejection_for($reason); |
||
51 | } |
||
57 |
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