From 7394a0d2285724511ecb79637918ef0a9d62fb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 11 Dec 2024 14:52:27 +0200 Subject: [PATCH] Update Console.php: Reduce duplication Use fall-through for "false" code branch --- src/Console.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Console.php b/src/Console.php index a1eeec9..57aa896 100644 --- a/src/Console.php +++ b/src/Console.php @@ -12,16 +12,12 @@ class Console public function execute($args) { if (count($args) > 1) { - $executable = array_shift($args); $commandName = array_shift($args); if (array_key_exists($commandName, $this->commandsWhitelist)) { return $this->executeCommand($this->commandsWhitelist[$commandName], $args); } - - $this->outputHelp(); - return false; } $this->outputHelp();