Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel2007.php 2 locations

@@ 789-794 (lines=6) @@
786
                                $docSheet->setCodeName((string) $xmlSheet->sheetPr['codeName']);
787
                            }
788
                            if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->outlinePr)) {
789
                                if (isset($xmlSheet->sheetPr->outlinePr['summaryRight']) &&
790
                                    !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryRight'])) {
791
                                    $docSheet->setShowSummaryRight(false);
792
                                } else {
793
                                    $docSheet->setShowSummaryRight(true);
794
                                }
795
796
                                if (isset($xmlSheet->sheetPr->outlinePr['summaryBelow']) &&
797
                                    !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryBelow'])) {
@@ 796-801 (lines=6) @@
793
                                    $docSheet->setShowSummaryRight(true);
794
                                }
795
796
                                if (isset($xmlSheet->sheetPr->outlinePr['summaryBelow']) &&
797
                                    !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryBelow'])) {
798
                                    $docSheet->setShowSummaryBelow(false);
799
                                } else {
800
                                    $docSheet->setShowSummaryBelow(true);
801
                                }
802
                            }
803
804
                            if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->pageSetUpPr)) {