Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function filterByDependency(WritableRepositoryInterface $repository, $dependencyName) |
||
23 | { |
||
24 | $depsRepository = $this->composerDependencies->createCompositeRepository($repository); |
||
25 | $dependents = $depsRepository->getDependents($dependencyName); |
||
|
|||
26 | $dependentsList = array_column($dependents, 0); |
||
27 | |||
28 | return array_filter($dependentsList); |
||
29 | } |
||
31 |