Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 1922-1930 (lines=9) @@
1919
                $docStyle->getFont()->setUnderline((string) $style->font->u['val']);
1920
            }
1921
1922
            if (isset($style->font->vertAlign, $style->font->vertAlign['val'])) {
1923
                $vertAlign = strtolower((string) $style->font->vertAlign['val']);
1924
                if ($vertAlign == 'superscript') {
1925
                    $docStyle->getFont()->setSuperscript(true);
1926
                }
1927
                if ($vertAlign == 'subscript') {
1928
                    $docStyle->getFont()->setSubscript(true);
1929
                }
1930
            }
1931
        }
1932
1933
        // fill
@@ 2073-2081 (lines=9) @@
2070
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2071
                            $objText->getFont()->setItalic(true);
2072
                        }
2073
                        if (isset($run->rPr->vertAlign, $run->rPr->vertAlign['val'])) {
2074
                            $vertAlign = strtolower((string) $run->rPr->vertAlign['val']);
2075
                            if ($vertAlign == 'superscript') {
2076
                                $objText->getFont()->setSuperscript(true);
2077
                            }
2078
                            if ($vertAlign == 'subscript') {
2079
                                $objText->getFont()->setSubscript(true);
2080
                            }
2081
                        }
2082
                        if (isset($run->rPr->u) && !isset($run->rPr->u['val'])) {
2083
                            $objText->getFont()->setUnderline(Style\Font::UNDERLINE_SINGLE);
2084
                        } elseif (isset($run->rPr->u, $run->rPr->u['val'])) {