Code Duplication    Length = 4-4 lines in 2 locations

core/helpers/XLSXWriter.php 2 locations

@@ 497-500 (lines=4) @@
494
                $v = strlen($v) == 3 ? $v[0] . $v[0] . $v[1] . $v[1] . $v[2] . $v[2] : $v;// expand cf0 => ccff00
495
                $style_indexes[$i]['fill_idx'] = self::add_to_list_get_index($fills, "FF" . strtoupper($v));
496
            }
497
            if (isset($style['halign']) && in_array($style['halign'], $horizontal_allowed)) {
498
                $style_indexes[$i]['alignment'] = true;
499
                $style_indexes[$i]['halign'] = $style['halign'];
500
            }
501
            if (isset($style['valign']) && in_array($style['valign'], $vertical_allowed)) {
502
                $style_indexes[$i]['alignment'] = true;
503
                $style_indexes[$i]['valign'] = $style['valign'];
@@ 501-504 (lines=4) @@
498
                $style_indexes[$i]['alignment'] = true;
499
                $style_indexes[$i]['halign'] = $style['halign'];
500
            }
501
            if (isset($style['valign']) && in_array($style['valign'], $vertical_allowed)) {
502
                $style_indexes[$i]['alignment'] = true;
503
                $style_indexes[$i]['valign'] = $style['valign'];
504
            }
505
            if (isset($style['wrap_text'])) {
506
                $style_indexes[$i]['alignment'] = true;
507
                $style_indexes[$i]['wrap_text'] = (bool)$style['wrap_text'];