| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 4 | public function fetchFile( string $fileUrl ): string { |
|
| 32 | try { |
||
| 33 | 4 | return $this->wrappedFileFetcher->fetchFile( $fileUrl ); |
|
| 34 | 3 | } catch ( FileFetchingException $e ) { |
|
| 35 | 3 | $this->logger->log( |
|
| 36 | 3 | $this->logLevel, |
|
| 37 | 3 | $e->getMessage(), |
|
| 38 | [ |
||
| 39 | 3 | 'exception' => $e |
|
| 40 | ] |
||
| 41 | ); |
||
| 42 | 3 | throw $e; |
|
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 47 |