protected function getMaxColumnLength(array $columns): int
  {
    $length = 0;
    foreach ($columns as $column)
    {
      $length = max(mb_strlen($column['column_name']), $length);
    }

    return $length;
  }
protected function getMaxColumnLength(array $columns): int
  {
    $length = 0;
    foreach ($columns as $column)
    {
      $length = max(mb_strlen($column['column_name']), $length);
    }

    return $length;
  }
protected function getMaxColumnLength ( array $ columns ) : int { $ length = 0 ; foreach ( $ columns as $ column ) { $ length = max ( mb_strlen ( $ column [ 'column_name' ] ) , $ length ) ; } return $ length ; }
Returns the length the longest column name of a table.

@param array[] $columns The metadata of the columns of the table.

@return int
Returns the length the longest column name of a table .