| @@ 179-183 (lines=5) @@ | ||
| 176 | // Of the columns whose length is still > than the the lenght |
|
| 177 | // of their maximum word length |
|
| 178 | if ($auto_widths[$col_id] > $max_word_lens[$col_id]) { |
|
| 179 | if ($this->shouldSelectThisColumn($count, $counts, $width)) { |
|
| 180 | $column = $col_id; |
|
| 181 | $count = current($counts); |
|
| 182 | $width = key($counts); |
|
| 183 | } |
|
| 184 | } |
|
| 185 | } |
|
| 186 | if ($column !== false) { |
|
| @@ 191-195 (lines=5) @@ | ||
| 188 | } |
|
| 189 | foreach ($col_dist as $col_id => $counts) { |
|
| 190 | if (empty($this->minimumWidths) || ($auto_widths[$col_id] > $this->minimumWidths[$col_id])) { |
|
| 191 | if ($this->shouldSelectThisColumn($count, $counts, $width)) { |
|
| 192 | $column = $col_id; |
|
| 193 | $count = current($counts); |
|
| 194 | $width = key($counts); |
|
| 195 | } |
|
| 196 | } |
|
| 197 | } |
|
| 198 | return [$column, $count, $width]; |
|