| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 22 | public function fetch(ParaunitProcessInterface $process) |
|
| 33 | { |
||
| 34 | 22 | $filePath = $this->fileName->generate($process); |
|
| 35 | 22 | $fileContent = ''; |
|
| 36 | |||
| 37 | 22 | if (file_exists($filePath)) { |
|
| 38 | 21 | $fileContent = file_get_contents($filePath); |
|
| 39 | 21 | } |
|
| 40 | |||
| 41 | 22 | $logs = json_decode($this->cleanLog($fileContent)); |
|
| 42 | 22 | $logs[] = $this->createLogEnding(); |
|
| 43 | |||
| 44 | 22 | return $logs; |
|
| 45 | } |
||
| 46 | |||
| 66 |