return $this->commands
[$name] ??
$this->aliases
[$name];
} private function inspectApplication(): void
{ $this->commands =
[];
$this->namespaces =
[];
$all =
$this->application->
all($this->namespace ?
$this->application->
findNamespace($this->namespace
) : null
);
foreach ($this->
sortCommands($all) as $namespace =>
$commands) { $names =
[];
/** @var Command $command */
foreach ($commands as $name =>
$command) { if (!
$command->
getName() || (!
$this->showHidden &&
$command->
isHidden())) { continue;
} if ($command->
getName() ===
$name) { $this->commands
[$name] =
$command;
} else {