| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function resolvePackages(PackageRepository $repository) |
||
| 29 | { |
||
| 30 | $result = array_reduce( |
||
| 31 | $this->listSources, |
||
| 32 | function ($result, PatchSourceListInterface $listSource) use ($repository) { |
||
| 33 | return array_merge($result, $listSource->getItems($repository)); |
||
| 34 | }, |
||
| 35 | array() |
||
| 36 | ); |
||
| 37 | |||
| 38 | return array_unique($result); |
||
| 39 | } |
||
| 41 |