Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Xlsx.php 3 locations

@@ 2060-2063 (lines=4) @@
2057
                        if (isset($run->rPr->color)) {
2058
                            $objText->getFont()->setColor(new Style\Color(self::readColor($run->rPr->color)));
2059
                        }
2060
                        if ((isset($run->rPr->b['val']) && self::boolean((string) $run->rPr->b['val'])) ||
2061
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2062
                            $objText->getFont()->setBold(true);
2063
                        }
2064
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2065
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2066
                            $objText->getFont()->setItalic(true);
@@ 2064-2067 (lines=4) @@
2061
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2062
                            $objText->getFont()->setBold(true);
2063
                        }
2064
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2065
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2066
                            $objText->getFont()->setItalic(true);
2067
                        }
2068
                        if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign['val'])) {
2069
                            $vertAlign = strtolower((string) $run->rPr->vertAlign['val']);
2070
                            if ($vertAlign == 'superscript') {
@@ 2082-2085 (lines=4) @@
2079
                        } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) {
2080
                            $objText->getFont()->setUnderline((string) $run->rPr->u['val']);
2081
                        }
2082
                        if ((isset($run->rPr->strike['val']) && self::boolean((string) $run->rPr->strike['val'])) ||
2083
                            (isset($run->rPr->strike) && !isset($run->rPr->strike['val']))) {
2084
                            $objText->getFont()->setStrikethrough(true);
2085
                        }
2086
                    }
2087
                }
2088
            }