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