| Conditions | 7 |
| Paths | 52 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function write($exception, $logType) |
||
| 36 | { |
||
| 37 | try { |
||
| 38 | $log = new Log(); |
||
| 39 | if(is_callable($this->context)) { |
||
| 40 | try { |
||
| 41 | $context = call_user_func($this->context, $exception); |
||
| 42 | } catch(\Exception $e) { |
||
| 43 | self::logInnerException(new \Exception('Can not call ' . $this->context)); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | if(!is_array($this->context)) { |
||
| 47 | $this->context = (!empty($this->context) ? [$this->context] : []); |
||
| 48 | } |
||
| 49 | if($logType == \Bitrix\Main\Diag\ExceptionHandlerLog::LOW_PRIORITY_ERROR) { |
||
| 50 | $log->error($exception, $this->context); |
||
| 51 | } else { |
||
| 52 | $this->context['source'] = self::logTypeToString($logType); |
||
| 53 | $log->telegram(LogLevel::CRITICAL, $exception, $this->context); |
||
| 54 | } |
||
| 55 | |||
| 56 | } catch(\Exception $e) { |
||
| 57 | self::logInnerException($e); |
||
| 58 | } |
||
| 68 | } |
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