Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Xlsx.php 3 locations

@@ 2027-2030 (lines=4) @@
2024
                        if (isset($run->rPr->color)) {
2025
                            $objText->getFont()->setColor(new \PhpOffice\PhpSpreadsheet\Style\Color(self::readColor($run->rPr->color)));
2026
                        }
2027
                        if ((isset($run->rPr->b['val']) && self::boolean((string) $run->rPr->b['val'])) ||
2028
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2029
                            $objText->getFont()->setBold(true);
2030
                        }
2031
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2032
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2033
                            $objText->getFont()->setItalic(true);
@@ 2031-2034 (lines=4) @@
2028
                            (isset($run->rPr->b) && !isset($run->rPr->b['val']))) {
2029
                            $objText->getFont()->setBold(true);
2030
                        }
2031
                        if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) ||
2032
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2033
                            $objText->getFont()->setItalic(true);
2034
                        }
2035
                        if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign['val'])) {
2036
                            $vertAlign = strtolower((string) $run->rPr->vertAlign['val']);
2037
                            if ($vertAlign == 'superscript') {
@@ 2049-2052 (lines=4) @@
2046
                        } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) {
2047
                            $objText->getFont()->setUnderline((string) $run->rPr->u['val']);
2048
                        }
2049
                        if ((isset($run->rPr->strike['val']) && self::boolean((string) $run->rPr->strike['val'])) ||
2050
                            (isset($run->rPr->strike) && !isset($run->rPr->strike['val']))) {
2051
                            $objText->getFont()->setStrikethrough(true);
2052
                        }
2053
                    }
2054
                }
2055
            }