public function getNames($includeAliases = false)
    {
        $names = array_keys($this->commands);

        if ($includeAliases) {
            $names = array_merge($names, array_keys($this->aliasIndex));
        }

        sort($names);

        return $names;
    }
public function getNames($includeAliases = false)
    {
        $names = array_keys($this->commands);

        if ($includeAliases) {
            $names = array_merge($names, array_keys($this->aliasIndex));
        }

        sort($names);

        return $names;
    }
public function getNames ( $ includeAliases = false ) { $ names = array_keys ( $ this -> commands ) ; if ( $ includeAliases ) { $ names = array_merge ( $ names , array_keys ( $ this -> aliasIndex ) ) ; } sort ( $ names ) ; return $ names ; }
Returns the names of all commands in the collection.

The names are sorted alphabetically in ascending order. If you set
`$includeAliases` to `true`, the alias names are included in the result.

@param bool $includeAliases Whether to include alias names in the result.

@return string[] The sorted command names.
Returns the names of all commands in the collection .