private function getMaxWidth()
    {
        $max = 0;

        foreach ($this->getOptions() as $option) {
            $nameLength = \strlen($option->getName()) + 2;
            if ($option->getShortcut()) {
                $nameLength += \strlen($option->getShortcut()) + 3;
            }

            $max = \max($max, $nameLength);
        }

        foreach ($this->getArguments() as $argument) {
            $max = \max($max, \strlen($argument->getName()));
        }

        return ++$max;
    }
private function getMaxWidth()
    {
        $max = 0;

        foreach ($this->getOptions() as $option) {
            $nameLength = \strlen($option->getName()) + 2;
            if ($option->getShortcut()) {
                $nameLength += \strlen($option->getShortcut()) + 3;
            }

            $max = \max($max, $nameLength);
        }

        foreach ($this->getArguments() as $argument) {
            $max = \max($max, \strlen($argument->getName()));
        }

        return ++$max;
    }
private function getMaxWidth ( ) { $ max = 0 ; foreach ( $ this -> getOptions ( ) as $ option ) { $ nameLength = \ strlen ( $ option -> getName ( ) ) + 2 ; if ( $ option -> getShortcut ( ) ) { $ nameLength += \ strlen ( $ option -> getShortcut ( ) ) + 3 ; } $ max = \ max ( $ max , $ nameLength ) ; } foreach ( $ this -> getArguments ( ) as $ argument ) { $ max = \ max ( $ max , \ strlen ( $ argument -> getName ( ) ) ) ; } return ++ $ max ; }
Calculate the maximum padding width for a set of lines.

@return int
Calculate the maximum padding width for a set of lines .