Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
19 | 8 | private static function importLinks(array $command): Collection |
|
20 | { |
||
21 | 8 | $links = $command['links'] ?? []; |
|
22 | 8 | $namespace = $command['namespace']; |
|
23 | |||
24 | 8 | return Collection::create( |
|
25 | 8 | \array_map(function (string $source, string $target) use ($namespace) { |
|
26 | 1 | return new ComposerBinPluginLinkCommand($source, $target, $namespace); |
|
27 | 8 | }, $links, \array_keys($links)) |
|
28 | 8 | ); |
|
31 |