Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 1918-1926 (lines=9) @@
1915
                $docStyle->getFont()->setUnderline((string) $style->font->u['val']);
1916
            }
1917
1918
            if (isset($style->font->vertAlign) && isset($style->font->vertAlign['val'])) {
1919
                $vertAlign = strtolower((string) $style->font->vertAlign['val']);
1920
                if ($vertAlign == 'superscript') {
1921
                    $docStyle->getFont()->setSuperScript(true);
1922
                }
1923
                if ($vertAlign == 'subscript') {
1924
                    $docStyle->getFont()->setSubScript(true);
1925
                }
1926
            }
1927
        }
1928
1929
        // fill
@@ 2069-2077 (lines=9) @@
2066
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2067
                            $objText->getFont()->setItalic(true);
2068
                        }
2069
                        if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign['val'])) {
2070
                            $vertAlign = strtolower((string) $run->rPr->vertAlign['val']);
2071
                            if ($vertAlign == 'superscript') {
2072
                                $objText->getFont()->setSuperScript(true);
2073
                            }
2074
                            if ($vertAlign == 'subscript') {
2075
                                $objText->getFont()->setSubScript(true);
2076
                            }
2077
                        }
2078
                        if (isset($run->rPr->u) && !isset($run->rPr->u['val'])) {
2079
                            $objText->getFont()->setUnderline(Style\Font::UNDERLINE_SINGLE);
2080
                        } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) {