Code Duplication    Length = 4-4 lines in 2 locations

core/helpers/XLSXWriter.php 2 locations

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