| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | private function getRepositories(): array |
||
| 29 | { |
||
| 30 | $jsonFile = ComposerParser::parseComposerJson(base_path('composer.json')); |
||
| 31 | |||
| 32 | $repositories = $jsonFile->getRepositories(); |
||
| 33 | $output = []; |
||
| 34 | |||
| 35 | foreach ($repositories as $repository) { |
||
| 36 | $output[] = [ |
||
| 37 | 'type' => $repository->getType(), |
||
| 38 | 'url' => $repository->getUrl(), |
||
| 39 | // TODO: Add options & package |
||
| 40 | // 'options' => $repository->getOptions(), |
||
| 41 | // 'package' => $repository->getPackage(), |
||
| 42 | ]; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $output; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |