private function getColumnWidth(array $commands): int
	{
		$widths = [];

		foreach ($commands as $command)
		{
			if ($command instanceof AbstractCommand)
			{
				$widths[] = StringHelper::strlen($command->getName());

				foreach ($command->getAliases() as $alias)
				{
					$widths[] = StringHelper::strlen($alias);
				}
			}
			else
			{
				$widths[] = StringHelper::strlen($command);
			}
		}

		return $widths ? max($widths) + 2 : 0;
	}
private function getColumnWidth(array $commands): int
	{
		$widths = [];

		foreach ($commands as $command)
		{
			if ($command instanceof AbstractCommand)
			{
				$widths[] = StringHelper::strlen($command->getName());

				foreach ($command->getAliases() as $alias)
				{
					$widths[] = StringHelper::strlen($alias);
				}
			}
			else
			{
				$widths[] = StringHelper::strlen($command);
			}
		}

		return $widths ? max($widths) + 2 : 0;
	}
private function getColumnWidth ( array $ commands ) : int { $ widths = [ ] ; foreach ( $ commands as $ command ) { if ( $ command instanceof AbstractCommand ) { $ widths [ ] = StringHelper :: strlen ( $ command -> getName ( ) ) ; foreach ( $ command -> getAliases ( ) as $ alias ) { $ widths [ ] = StringHelper :: strlen ( $ alias ) ; } } else { $ widths [ ] = StringHelper :: strlen ( $ command ) ; } } return $ widths ? max ( $ widths ) + 2 : 0 ; }
Calculate the column width for a group of commands.

@param   AbstractCommand[]|string[] $commands The commands to use for processing a width.

@return  integer

@since   __DEPLOY_VERSION__
Calculate the column width for a group of commands .