Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel2007.php 2 locations

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