Symfony\Component\Console\Descriptor\TextDescriptor::getColumnWidth PHP Méthode

getColumnWidth() private méthode

private getColumnWidth ( array $commands ) : integer
$commands array
Résultat integer
    private function getColumnWidth(array $commands)
    {
        $widths = array();
        foreach ($commands as $command) {
            $widths[] = strlen($command->getName());
            foreach ($command->getAliases() as $alias) {
                $widths[] = strlen($alias);
            }
        }
        return max($widths) + 2;
    }