mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Removed unused variables and includes, fixed functions being called with more arguments than declared.
This commit is contained in:
parent
98845dca6f
commit
b059cbe37c
7 changed files with 2 additions and 10 deletions
|
@ -125,7 +125,6 @@ EOT
|
|||
|
||||
// show single package or single version
|
||||
if ($input->getArgument('package') || !empty($package)) {
|
||||
$versions = array();
|
||||
if (empty($package)) {
|
||||
list($package, $versions) = $this->getPackage($installedRepo, $repos, $input->getArgument('package'), $input->getArgument('version'));
|
||||
|
||||
|
@ -139,7 +138,7 @@ EOT
|
|||
if ($input->getOption('tree')) {
|
||||
$this->displayPackageTree($package, $installedRepo, $repos);
|
||||
} else {
|
||||
$this->printMeta($package, $versions, $installedRepo, $repos);
|
||||
$this->printMeta($package, $versions, $installedRepo);
|
||||
$this->printLinks($package, 'requires');
|
||||
$this->printLinks($package, 'devRequires', 'requires (dev)');
|
||||
if ($package->getSuggests()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue