Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Excel2007.php 3 locations

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