Code Duplication    Length = 4-4 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 4076-4079 (lines=4) @@
4073
4074
        if ($pSheet !== null) {
4075
            $pSheetName = $pSheet->getTitle();
4076
            if (strpos($pRange, '!') !== false) {
4077
                list($pSheetName, $pRange) = Worksheet::extractSheetTitle($pRange, true);
4078
                $pSheet = $this->spreadsheet->getSheetByName($pSheetName);
4079
            }
4080
4081
            // Extract range
4082
            $aReferences = Cell::extractAllCellReferencesInRange($pRange);
@@ 4127-4130 (lines=4) @@
4124
4125
        if ($pSheet !== null) {
4126
            $pSheetName = $pSheet->getTitle();
4127
            if (strpos($pRange, '!') !== false) {
4128
                list($pSheetName, $pRange) = Worksheet::extractSheetTitle($pRange, true);
4129
                $pSheet = $this->spreadsheet->getSheetByName($pSheetName);
4130
            }
4131
4132
            // Named range?
4133
            $namedRange = NamedRange::resolveRange($pRange, $pSheet);