| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 1 | public function fetch(ParaunitProcessInterface $process) |
|
| 33 | { |
||
| 34 | 1 | $filePath = $this->fileName->generate($process); |
|
| 35 | |||
| 36 | 1 | if ( ! file_exists($filePath)) { |
|
| 37 | 1 | throw new JSONLogNotFoundException($process); |
|
| 38 | } |
||
| 39 | |||
| 40 | return json_decode( |
||
| 41 | $this->cleanLog(file_get_contents($filePath)) |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | |||
| 56 |