Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

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