| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ProfileMiddleware |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Symfony\Component\Stopwatch\Stopwatch |
||
| 11 | */ |
||
| 12 | private $stopwatch; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \Symfony\Component\Stopwatch\Stopwatch $stopwatch |
||
| 16 | */ |
||
| 17 | public function __construct(Stopwatch $stopwatch) |
||
| 18 | { |
||
| 19 | $this->stopwatch = $stopwatch; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Profiling each Request |
||
| 24 | * |
||
| 25 | * @return \Closure |
||
| 26 | */ |
||
| 27 | public function profile() : \Closure |
||
| 51 | } |
||
| 52 | ); |
||
| 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