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