Code Duplication    Length = 4-4 lines in 2 locations

core/helpers/XLSXWriter.php 2 locations

@@ 531-534 (lines=4) @@
528
                $v = strlen($v) == 3 ? $v[0] . $v[0] . $v[1] . $v[1] . $v[2] . $v[2] : $v;// expand cf0 => ccff00
529
                $style_indexes[$i]['fill_idx'] = self::add_to_list_get_index($fills, "FF" . strtoupper($v));
530
            }
531
            if (isset($style['halign']) && in_array($style['halign'], $horizontal_allowed)) {
532
                $style_indexes[$i]['alignment'] = true;
533
                $style_indexes[$i]['halign'] = $style['halign'];
534
            }
535
            if (isset($style['valign']) && in_array($style['valign'], $vertical_allowed)) {
536
                $style_indexes[$i]['alignment'] = true;
537
                $style_indexes[$i]['valign'] = $style['valign'];
@@ 535-538 (lines=4) @@
532
                $style_indexes[$i]['alignment'] = true;
533
                $style_indexes[$i]['halign'] = $style['halign'];
534
            }
535
            if (isset($style['valign']) && in_array($style['valign'], $vertical_allowed)) {
536
                $style_indexes[$i]['alignment'] = true;
537
                $style_indexes[$i]['valign'] = $style['valign'];
538
            }
539
            if (isset($style['wrap_text'])) {
540
                $style_indexes[$i]['alignment'] = true;
541
                $style_indexes[$i]['wrap_text'] = (bool)$style['wrap_text'];