Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
12 | 10 | public static function import(array $command): Command |
|
13 | { |
||
14 | 10 | Assert::requireFields(['package', 'namespace'], $command, 'ComposerBinPluginCommand'); |
|
15 | |||
16 | 8 | return new ComposerBinPluginCommand($command['package'], $command['namespace'], self::importLinks($command)); |
|
17 | } |
||
31 |