Conditions | 6 |
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 ($this->logger instanceof 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 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.