Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 771-776 (lines=6) @@
768
                                $docSheet->setCodeName((string) $xmlSheet->sheetPr['codeName']);
769
                            }
770
                            if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->outlinePr)) {
771
                                if (isset($xmlSheet->sheetPr->outlinePr['summaryRight']) &&
772
                                    !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryRight'])) {
773
                                    $docSheet->setShowSummaryRight(false);
774
                                } else {
775
                                    $docSheet->setShowSummaryRight(true);
776
                                }
777
778
                                if (isset($xmlSheet->sheetPr->outlinePr['summaryBelow']) &&
779
                                    !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryBelow'])) {
@@ 778-783 (lines=6) @@
775
                                    $docSheet->setShowSummaryRight(true);
776
                                }
777
778
                                if (isset($xmlSheet->sheetPr->outlinePr['summaryBelow']) &&
779
                                    !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryBelow'])) {
780
                                    $docSheet->setShowSummaryBelow(false);
781
                                } else {
782
                                    $docSheet->setShowSummaryBelow(true);
783
                                }
784
                            }
785
786
                            if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->pageSetUpPr)) {