|
|
@ -125,6 +125,7 @@ class BaseDependencyCommand extends BaseCommand
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->printTable($output, $results);
|
|
|
|
$this->printTable($output, $results);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -141,13 +142,13 @@ class BaseDependencyCommand extends BaseCommand
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
$queue = array();
|
|
|
|
$queue = array();
|
|
|
|
$rows = array();
|
|
|
|
$rows = array();
|
|
|
|
foreach($results as $result) {
|
|
|
|
foreach ($results as $result) {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @var PackageInterface $package
|
|
|
|
* @var PackageInterface $package
|
|
|
|
* @var Link $link
|
|
|
|
* @var Link $link
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
list($package, $link, $children) = $result;
|
|
|
|
list($package, $link, $children) = $result;
|
|
|
|
$unique = (string)$link;
|
|
|
|
$unique = (string) $link;
|
|
|
|
if (isset($doubles[$unique])) {
|
|
|
|
if (isset($doubles[$unique])) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -158,7 +159,7 @@ class BaseDependencyCommand extends BaseCommand
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$results = $queue;
|
|
|
|
$results = $queue;
|
|
|
|
$table = array_merge($rows, $table);
|
|
|
|
$table = array_merge($rows, $table);
|
|
|
|
} while(!empty($results));
|
|
|
|
} while (!empty($results));
|
|
|
|
|
|
|
|
|
|
|
|
// Render table
|
|
|
|
// Render table
|
|
|
|
$renderer = new Table($output);
|
|
|
|
$renderer = new Table($output);
|
|
|
@ -178,7 +179,7 @@ class BaseDependencyCommand extends BaseCommand
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$count = count($results);
|
|
|
|
$count = count($results);
|
|
|
|
$idx = 0;
|
|
|
|
$idx = 0;
|
|
|
|
foreach($results as $key => $result) {
|
|
|
|
foreach ($results as $key => $result) {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @var PackageInterface $package
|
|
|
|
* @var PackageInterface $package
|
|
|
|
* @var Link $link
|
|
|
|
* @var Link $link
|
|
|
|