[Console] Remove an unused argument and fix a small cs issue
This commit is contained in:
parent
9f5a6c6b66
commit
ec14143922
@ -488,7 +488,7 @@ class Application
|
|||||||
if (empty($namespaces)) {
|
if (empty($namespaces)) {
|
||||||
$message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
|
$message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
|
||||||
|
|
||||||
if ($alternatives = $this->findAlternatives($namespace, $allNamespaces, array())) {
|
if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) {
|
||||||
if (1 == count($alternatives)) {
|
if (1 == count($alternatives)) {
|
||||||
$message .= "\n\nDid you mean this?\n ";
|
$message .= "\n\nDid you mean this?\n ";
|
||||||
} else {
|
} else {
|
||||||
@ -537,7 +537,7 @@ class Application
|
|||||||
|
|
||||||
$message = sprintf('Command "%s" is not defined.', $name);
|
$message = sprintf('Command "%s" is not defined.', $name);
|
||||||
|
|
||||||
if ($alternatives = $this->findAlternatives($name, $allCommands, array())) {
|
if ($alternatives = $this->findAlternatives($name, $allCommands)) {
|
||||||
if (1 == count($alternatives)) {
|
if (1 == count($alternatives)) {
|
||||||
$message .= "\n\nDid you mean this?\n ";
|
$message .= "\n\nDid you mean this?\n ";
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user