protected function getName($item): string
    {
        $name = $item->name();

        if ($item instanceof Command) {
            return \trim(\str_pad($name, $this->maxCmdName) . ' ' . $item->alias());
        }

        return $this->label($item);
    }
protected function getName($item): string
    {
        $name = $item->name();

        if ($item instanceof Command) {
            return \trim(\str_pad($name, $this->maxCmdName) . ' ' . $item->alias());
        }

        return $this->label($item);
    }
protected function getName ( $ item ) : string { $ name = $ item -> name ( ) ; if ( $ item instanceof Command ) { return \ trim ( \ str_pad ( $ name , $ this -> maxCmdName ) . ' ' . $ item -> alias ( ) ) ; } return $ this -> label ( $ item ) ; }
Prepare name for different items.

@param Parameter|Command $item

@return string
Prepare name for different items .