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