Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
31 | 2 | public function runComposerCommand(array $commandParams, OutputInterface $output) |
|
32 | { |
||
33 | 2 | $application = new Application(); |
|
34 | 2 | $application->resetComposer(); |
|
35 | // Don't auto exit after command so we can chain several ones |
||
36 | 2 | $application->setAutoExit(false); |
|
37 | |||
38 | 2 | $input = new ArrayInput($commandParams); |
|
39 | |||
40 | // Execute command and display its output |
||
41 | 2 | $exitCode = $application->run($input, $output); |
|
42 | |||
43 | 2 | if ($exitCode) { |
|
44 | 1 | throw new \RuntimeException( |
|
45 | 1 | sprintf('Command "%s" failed', $commandParams['command']) |
|
46 | ); |
||
47 | } |
||
48 | |||
49 | 1 | return $exitCode; |
|
50 | } |
||
52 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths