예제 #1
0
 /**
  * Loops through the row and sets the maximum width for each column.
  *
  * @param array  $row  The table row.
  */
 protected function checkRow(array $row)
 {
     foreach ($row as $column => $str) {
         $width = Colors::length($str);
         if (!isset($this->_width[$column]) || $width > $this->_width[$column]) {
             $this->_width[$column] = $width;
         }
     }
     return $row;
 }