src/Output/BaseOutput.php
private function getColumnWidth(array $headings)
    {
        $width = 0;
        foreach ($headings as $heading) {
            $width = strlen($heading) > $width ? strlen($heading) : $width;
        }

        return $width + 5;
    }
private function getColumnWidth(array $headings)
    {
        $width = 0;
        foreach ($headings as $heading) {
            $width = strlen($heading) > $width ? strlen($heading) : $width;
        }

        return $width + 5;
    }
private function getColumnWidth ( array $ headings ) { $ width = 0 ; foreach ( $ headings as $ heading ) { $ width = strlen ( $ heading ) > $ width ? strlen ( $ heading ) : $ width ; } return $ width + 5 ; }
calculates the max width of a given set of string.

@param string[] $headings

@return int
calculates the max width of a given set of string .