From ec14143922b350ffdab705f9a83d854a64b62e3e Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Fri, 5 Jun 2015 14:31:22 +0100 Subject: [PATCH] [Console] Remove an unused argument and fix a small cs issue --- src/Symfony/Component/Console/Application.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 1f79496171..e87884648c 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -488,7 +488,7 @@ class Application if (empty($namespaces)) { $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)) { $message .= "\n\nDid you mean this?\n "; } else { @@ -537,7 +537,7 @@ class Application $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)) { $message .= "\n\nDid you mean this?\n "; } else { @@ -1082,7 +1082,7 @@ class Application } } - $alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2*$threshold; }); + $alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2 * $threshold; }); asort($alternatives); return array_keys($alternatives);