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