Conditions | 3 |
Paths | 6 |
Total Lines | 14 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function logRegion(string $query, $fn) { |
||
24 | $exception = null; |
||
25 | $timer = microtime(true); |
||
26 | try { |
||
27 | return $fn(); |
||
28 | } catch(Throwable $e) { |
||
29 | $exception = $e; |
||
30 | throw $e; |
||
31 | } finally { |
||
32 | $finalTimer = microtime(true) - $timer; |
||
33 | if($exception === null) { |
||
34 | $this->log($query, $finalTimer); |
||
35 | } else { |
||
36 | $this->logError($query, $exception, $finalTimer); |
||
37 | } |
||
66 |
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