| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | 4 | public function __construct(Collection $commands) |
|
| 14 | { |
||
| 15 | 4 | if ($commands->empty()) { |
|
| 16 | 1 | throw new InvalidArgumentException('Collection of composer global install commands cannot be empty.'); |
|
| 17 | } |
||
| 18 | |||
| 19 | 3 | $this->commands = $commands->filter(function (ComposerGlobalInstallCommand $c) { |
|
| 20 | 3 | return $c; |
|
| 21 | 3 | }); |
|
| 33 |