| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function createFileDownloader($appIO, $composer, $composerConfig, $cache) |
||
| 22 | { |
||
| 23 | if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) { |
||
| 24 | return new FileDownloader($appIO, $composerConfig, null, $cache); |
||
|
|
|||
| 25 | } |
||
| 26 | |||
| 27 | $httpDownloader = $composer->getLoop()->getHttpDownloader(); |
||
| 28 | return new FileDownloader($appIO, $composerConfig, $httpDownloader, null, $cache); |
||
| 29 | } |
||
| 40 |