Code Duplication    Length = 3-3 lines in 4 locations

core/helpers/XLSXWriter.php 4 locations

@@ 525-527 (lines=3) @@
522
                $font['name'] = strval($style['font']);
523
            }
524
            if (isset($style['font-style']) && is_string($style['font-style'])) {
525
                if (strpos($style['font-style'], 'bold') !== false) {
526
                    $font['bold'] = true;
527
                }
528
                if (strpos($style['font-style'], 'italic') !== false) {
529
                    $font['italic'] = true;
530
                }
@@ 528-530 (lines=3) @@
525
                if (strpos($style['font-style'], 'bold') !== false) {
526
                    $font['bold'] = true;
527
                }
528
                if (strpos($style['font-style'], 'italic') !== false) {
529
                    $font['italic'] = true;
530
                }
531
                if (strpos($style['font-style'], 'strike') !== false) {
532
                    $font['strike'] = true;
533
                }
@@ 531-533 (lines=3) @@
528
                if (strpos($style['font-style'], 'italic') !== false) {
529
                    $font['italic'] = true;
530
                }
531
                if (strpos($style['font-style'], 'strike') !== false) {
532
                    $font['strike'] = true;
533
                }
534
                if (strpos($style['font-style'], 'underline') !== false) {
535
                    $font['underline'] = true;
536
                }
@@ 534-536 (lines=3) @@
531
                if (strpos($style['font-style'], 'strike') !== false) {
532
                    $font['strike'] = true;
533
                }
534
                if (strpos($style['font-style'], 'underline') !== false) {
535
                    $font['underline'] = true;
536
                }
537
            }
538
            if (isset($style['color']) && is_string($style['color']) && $style['color'][0] == '#') {
539
                $v = substr($style['color'], 1, 6);