Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel2007.php 2 locations

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