| Conditions | 3 |
| Paths | 8 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public static function log($message, array $context = [], $type = 'info', $level = 0) |
||
| 11 | { |
||
| 12 | self::getType($type); |
||
| 13 | |||
| 14 | try { |
||
| 15 | $log = self::registerLog(); |
||
| 16 | $debug = \debug_backtrace()[$level]; |
||
| 17 | $details = [ |
||
| 18 | $debug['file'], |
||
| 19 | $debug['line'], |
||
| 20 | ]; |
||
| 21 | $context = !empty($context) ? \array_merge($context, $details) : $details; |
||
| 22 | |||
| 23 | $log->{strtolower($type)}($message, $context); |
||
| 24 | } catch (\Exception $exception) { |
||
| 25 | |||
| 48 |
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