1
0
Fork 0

Clean up coding standards

pull/4938/head
David Barratt 2016-02-21 12:18:03 -05:00
parent 28599b22f6
commit 63cb357a6e
1 changed files with 10 additions and 11 deletions

View File

@ -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'));