original_string: protected function _calculateWidths($rows)
      {
          $widths = [];
          foreach ($rows as $line) {
              foreach (array_values($line) as $k => $v) {
                  $columnLength = $this->_cellWidth($v);
                  if ($columnLength >= (isset($widths[$k]) ? $widths[$k] : 0)) {
                      $widths[$k] = $columnLength;
                  }
              }
          }
  
          return $widths;
      }
code: protected function _calculateWidths($rows)
      {
          $widths = [];
          foreach ($rows as $line) {
              foreach (array_values($line) as $k => $v) {
                  $columnLength = $this->_cellWidth($v);
                  if ($columnLength >= (isset($widths[$k]) ? $widths[$k] : 0)) {
                      $widths[$k] = $columnLength;
                  }
              }
          }
  
          return $widths;
      }
code_tokens: protected function _calculateWidths ( $ rows ) { $ widths = [ ] ; foreach ( $ rows as $ line ) { foreach ( array_values ( $ line ) as $ k => $ v ) { $ columnLength = $ this -> _cellWidth ( $ v ) ; if ( $ columnLength >= ( isset ( $ widths [ $ k ] ) ? $ widths [ $ k ] : 0 ) ) { $ widths [ $ k ] = $ columnLength ; } } } return $ widths ; }
docstring: Calculate the column widths
  
  @param array $rows The rows on which the columns width will be calculated on.
  @return array
docstring_tokens: Calculate the column widths