| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class PhpDownloader implements DownloaderInterface |
||
| 8 | { |
||
| 9 | 1 | public function download(string $url): string |
|
| 10 | { |
||
| 11 | 1 | return file_get_contents($url, false, stream_context_create([ |
|
| 12 | 1 | 'http' => [ |
|
| 13 | 'protocol_version' => '1.1', |
||
| 14 | ], |
||
| 15 | ])); |
||
| 16 | } |
||
| 17 | |||
| 18 | 2 | public function downloadAs(string $url, string $filename) |
|
| 21 | 2 | } |
|
| 22 | } |
||
| 23 |