Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 1894-1902 (lines=9) @@
1891
                $docStyle->getFont()->setUnderline((string) $style->font->u['val']);
1892
            }
1893
1894
            if (isset($style->font->vertAlign) && isset($style->font->vertAlign['val'])) {
1895
                $vertAlign = strtolower((string) $style->font->vertAlign['val']);
1896
                if ($vertAlign == 'superscript') {
1897
                    $docStyle->getFont()->setSuperScript(true);
1898
                }
1899
                if ($vertAlign == 'subscript') {
1900
                    $docStyle->getFont()->setSubScript(true);
1901
                }
1902
            }
1903
        }
1904
1905
        // fill
@@ 2035-2043 (lines=9) @@
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') {
2038
                                $objText->getFont()->setSuperScript(true);
2039
                            }
2040
                            if ($vertAlign == 'subscript') {
2041
                                $objText->getFont()->setSubScript(true);
2042
                            }
2043
                        }
2044
                        if (isset($run->rPr->u) && !isset($run->rPr->u['val'])) {
2045
                            $objText->getFont()->setUnderline(\PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_SINGLE);
2046
                        } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) {