| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function createCompositeRepository($repository) |
||
| 13 | { |
||
| 14 | if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) { |
||
| 15 | return new \Composer\Repository\CompositeRepository(array($repository)); |
||
| 16 | } |
||
| 17 | |||
| 18 | return new \Composer\Repository\InstalledRepository(array($repository)); |
||
| 19 | } |
||
| 40 |