Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

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