Code Duplication    Length = 5-5 lines in 2 locations

src/Transformations/WordWrapper.php 2 locations

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