| Conditions | 7 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | protected function finalise(): void |
||
| 22 | { |
||
| 23 | if (class_exists("Monolog\Logger") && $this->logger instanceof \Monolog\Logger) { |
||
|
|
|||
| 24 | foreach ($this->logger->getHandlers() as $handler) { |
||
| 25 | $handler->close(); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | if ($this->fileSystem instanceof LocalFileSystem && $this->fileSystem->getRootPath() == $this->workDir) { |
||
| 30 | // Local file system needs no moving of the log file. |
||
| 31 | return; |
||
| 32 | } |
||
| 33 | |||
| 34 | $logPath = $this->workDir . "/execution.log"; |
||
| 35 | if(file_exists($logPath)) { |
||
| 36 | $this->fileSystem->writeStream("execution.log", fopen($logPath, 'r')); |
||
| 37 | } |
||
| 40 | } |
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