Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Xlsx.php 3 locations

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