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