Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Excel2007.php 3 locations

@@ 2041-2044 (lines=4) @@
2038
                        if (isset($run->rPr->color)) {
2039
                            $objText->getFont()->setColor(new \PhpOffice\PhpSpreadsheet\Style\Color(self::readColor($run->rPr->color)));
2040
                        }
2041
                        if ((isset($run->rPr->b['val']) && self::boolean((string) $run->rPr->b['val'])) ||
2042
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2043
                            $objText->getFont()->setBold(true);
2044
                        }
2045
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2046
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2047
                            $objText->getFont()->setItalic(true);
@@ 2045-2048 (lines=4) @@
2042
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2043
                            $objText->getFont()->setBold(true);
2044
                        }
2045
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2046
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2047
                            $objText->getFont()->setItalic(true);
2048
                        }
2049
                        if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign['val'])) {
2050
                            $vertAlign = strtolower((string) $run->rPr->vertAlign['val']);
2051
                            if ($vertAlign == 'superscript') {
@@ 2063-2066 (lines=4) @@
2060
                        } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) {
2061
                            $objText->getFont()->setUnderline((string) $run->rPr->u['val']);
2062
                        }
2063
                        if ((isset($run->rPr->strike['val']) && self::boolean((string) $run->rPr->strike['val'])) ||
2064
                            (isset($run->rPr->strike) && !isset($run->rPr->strike['val']))) {
2065
                            $objText->getFont()->setStrikethrough(true);
2066
                        }
2067
                    }
2068
                }
2069
            }