Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
28 | { |
||
29 | if (!$this->logger) { |
||
30 | // Log to file |
||
31 | $this->logger = new Logger(); |
||
32 | $fileWriter = new Stream('logs/all.log'); |
||
33 | $this->logger->addWriter($fileWriter); |
||
34 | |||
35 | // Log to DB |
||
36 | $dbWriter = $container->get(DbWriter::class); |
||
37 | $dbWriter->addFilter(Logger::INFO); |
||
38 | $this->logger->addWriter($dbWriter); |
||
39 | } |
||
40 | |||
41 | return $this->logger; |
||
42 | } |
||
44 |
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