protected function _getMaxLength($collection)
    {
        $max = 0;
        foreach ($collection as $item) {
            $max = (strlen($item->name()) > $max) ? strlen($item->name()) : $max;
        }

        return $max;
    }
protected function _getMaxLength($collection)
    {
        $max = 0;
        foreach ($collection as $item) {
            $max = (strlen($item->name()) > $max) ? strlen($item->name()) : $max;
        }

        return $max;
    }
protected function _getMaxLength ( $ collection ) { $ max = 0 ; foreach ( $ collection as $ item ) { $ max = ( strlen ( $ item -> name ( ) ) > $ max ) ? strlen ( $ item -> name ( ) ) : $ max ; } return $ max ; }
Iterate over a collection and find the longest named thing.

@param array $collection The collection to find a max length of.
@return int
Iterate over a collection and find the longest named thing .