Clean up coding standards
parent
28599b22f6
commit
63cb357a6e
|
@ -103,18 +103,17 @@ EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($input->getOption('root-require')) {
|
if ($input->getOption('root-require')) {
|
||||||
$require = array_keys($composer->getPackage()->getRequires());
|
$require = array_keys($composer->getPackage()->getRequires());
|
||||||
if (!$input->getOption('no-dev')) {
|
if (!$input->getOption('no-dev')) {
|
||||||
$require_dev = array_keys($composer->getPackage()->getDevRequires());
|
$require_dev = array_keys($composer->getPackage()->getDevRequires());
|
||||||
$require = array_merge($require, $require_dev);
|
$require = array_merge($require, $require_dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($packages)) {
|
if (!empty($packages)) {
|
||||||
$packages = array_intersect($packages, $require);
|
$packages = array_intersect($packages, $require);
|
||||||
}
|
} else {
|
||||||
else {
|
$packages = $require;
|
||||||
$packages = $require;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
|
$composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
|
||||||
|
|
Loading…
Reference in New Issue