| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class EchoLogger extends LoggerAdapter |
||
| 26 | { |
||
| 27 | /** @var array */ |
||
| 28 | protected $config; |
||
| 29 | |||
| 30 | public function __construct(array $config) |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Echoes the log message as it is in CLI! |
||
| 41 | */ |
||
| 42 | protected function logInternal(string $message, int $type, int $time, array $context) |
||
| 43 | { |
||
| 44 | echo $this->getFormatter()->format($message, $type, $time, $context); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Gets a plain line formatter with configured format. |
||
| 49 | * |
||
| 50 | * @return LineFormatter |
||
| 51 | */ |
||
| 52 | public function getFormatter(): LineFormatter |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public function close() |
||
| 70 | } |
||
| 71 | } |
||
| 72 |
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