src/mako/reactor/Reactor.php
protected function getCommands(): array
	{
		$info = [];

		foreach($this->commands as $name => $class)
		{
			$command = $this->instantiateCommandWithoutConstructor($class);

			$info[$name] = [$name, $command->getCommandDescription()];
		}

		ksort($info);

		return $info;
	}
protected function getCommands(): array
	{
		$info = [];

		foreach($this->commands as $name => $class)
		{
			$command = $this->instantiateCommandWithoutConstructor($class);

			$info[$name] = [$name, $command->getCommandDescription()];
		}

		ksort($info);

		return $info;
	}
protected function getCommands ( ) : array { $ info = [ ] ; foreach ( $ this -> commands as $ name => $ class ) { $ command = $ this -> instantiateCommandWithoutConstructor ( $ class ) ; $ info [ $ name ] = [ $ name , $ command -> getCommandDescription ( ) ] ; } ksort ( $ info ) ; return $ info ; }
Returns an array of command information.

@return array
Returns an array of command information .