Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 1905-1913 (lines=9) @@
1902
                $docStyle->getFont()->setUnderline((string) $style->font->u['val']);
1903
            }
1904
1905
            if (isset($style->font->vertAlign) && isset($style->font->vertAlign['val'])) {
1906
                $vertAlign = strtolower((string) $style->font->vertAlign['val']);
1907
                if ($vertAlign == 'superscript') {
1908
                    $docStyle->getFont()->setSuperScript(true);
1909
                }
1910
                if ($vertAlign == 'subscript') {
1911
                    $docStyle->getFont()->setSubScript(true);
1912
                }
1913
            }
1914
        }
1915
1916
        // fill
@@ 2046-2054 (lines=9) @@
2043
                            (isset($run->rPr->i) && !isset($run->rPr->i['val']))) {
2044
                            $objText->getFont()->setItalic(true);
2045
                        }
2046
                        if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign['val'])) {
2047
                            $vertAlign = strtolower((string) $run->rPr->vertAlign['val']);
2048
                            if ($vertAlign == 'superscript') {
2049
                                $objText->getFont()->setSuperScript(true);
2050
                            }
2051
                            if ($vertAlign == 'subscript') {
2052
                                $objText->getFont()->setSubScript(true);
2053
                            }
2054
                        }
2055
                        if (isset($run->rPr->u) && !isset($run->rPr->u['val'])) {
2056
                            $objText->getFont()->setUnderline(\PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_SINGLE);
2057
                        } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) {