| Conditions | 2 |
| Paths | 6 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 5 | public function fetchFile( string $fileUrl ): string { |
|
| 35 | 5 | $this->stopwatch->start( $fileUrl, $this->category ); |
|
| 36 | |||
| 37 | try { |
||
| 38 | 5 | $fileContent = $this->fileFetcher->fetchFile( $fileUrl ); |
|
| 39 | } |
||
| 40 | 1 | catch ( FileFetchingException $ex ) { |
|
| 41 | 1 | throw $ex; |
|
| 42 | } |
||
| 43 | 4 | finally { |
|
| 44 | 5 | $this->stopwatch->stop( $fileUrl ); |
|
| 45 | } |
||
| 46 | |||
| 47 | 4 | return $fileContent; |
|
| 48 | } |
||
| 49 | |||
| 51 |