Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Xlsx.php 3 locations

@@ 2065-2068 (lines=4) @@
2062
                        if (isset($run->rPr->color)) {
2063
                            $objText->getFont()->setColor(new Style\Color(self::readColor($run->rPr->color)));
2064
                        }
2065
                        if ((isset($run->rPr->b['val']) && self::boolean((string) $run->rPr->b['val'])) ||
2066
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2067
                            $objText->getFont()->setBold(true);
2068
                        }
2069
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2070
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2071
                            $objText->getFont()->setItalic(true);
@@ 2069-2072 (lines=4) @@
2066
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2067
                            $objText->getFont()->setBold(true);
2068
                        }
2069
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2070
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2071
                            $objText->getFont()->setItalic(true);
2072
                        }
2073
                        if (isset($run->rPr->vertAlign, $run->rPr->vertAlign['val'])) {
2074
                            $vertAlign = strtolower((string) $run->rPr->vertAlign['val']);
2075
                            if ($vertAlign == 'superscript') {
@@ 2087-2090 (lines=4) @@
2084
                        } elseif (isset($run->rPr->u, $run->rPr->u['val'])) {
2085
                            $objText->getFont()->setUnderline((string) $run->rPr->u['val']);
2086
                        }
2087
                        if ((isset($run->rPr->strike['val']) && self::boolean((string) $run->rPr->strike['val'])) ||
2088
                            (isset($run->rPr->strike) && !isset($run->rPr->strike['val']))) {
2089
                            $objText->getFont()->setStrikethrough(true);
2090
                        }
2091
                    }
2092
                }
2093
            }