Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
24 | 2 | public function __toString(): string |
|
25 | { |
||
26 | 2 | $packages = \implode(' ', \array_map(function (ComposerGlobalInstallCommand $command) { |
|
27 | 2 | return $command->package(); |
|
28 | 2 | }, $this->commands->toArray())); |
|
29 | |||
30 | 2 | return \sprintf('composer global require --no-suggest --prefer-dist --update-no-dev -n %s', $packages); |
|
31 | } |
||
33 |