Skip to content

Commit e73893f

Browse files
committed
move alternatives to previous assign
1 parent 9c49724 commit e73893f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/CLI/Commands.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ public function verifyCommand(string $command, array $commands): bool
146146

147147
$message = lang('CLI.commandNotFound', [$command]);
148148

149-
if (($alternatives = $this->getCommandAlternatives($command, $commands)) !== []) {
149+
$alternatives = $this->getCommandAlternatives($command, $commands);
150+
if ($alternatives !== []) {
150151
if (count($alternatives) === 1) {
151152
$message .= "\n\n" . lang('CLI.altCommandSingular') . "\n ";
152153
} else {

0 commit comments

Comments
 (0)