| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | protected function finalise(): void |
||
| 21 | { |
||
| 22 | |||
| 23 | |||
| 24 | if ($this->fileSystem instanceof LocalFileSystem && $this->fileSystem->getRootPath() == $this->workDir) { |
||
| 25 | // Local file system needs no moving of the log file. |
||
| 26 | return; |
||
| 27 | } |
||
| 28 | |||
| 29 | $logPath = $this->workDir . "/execution.log"; |
||
| 30 | if(file_exists($logPath)) { |
||
| 31 | $this->fileSystem->writeStream("execution.log", fopen($logPath, 'r')); |
||
| 32 | } |
||
| 35 |