Code Duplication    Length = 4-4 lines in 2 locations

src/PhpSpreadsheet/Calculation/Calculation.php 2 locations

@@ 4100-4103 (lines=4) @@
4097
4098
        if ($pSheet !== null) {
4099
            $pSheetName = $pSheet->getTitle();
4100
            if (strpos($pRange, '!') !== false) {
4101
                list($pSheetName, $pRange) = Worksheet::extractSheetTitle($pRange, true);
4102
                $pSheet = $this->spreadsheet->getSheetByName($pSheetName);
4103
            }
4104
4105
            // Extract range
4106
            $aReferences = Cell::extractAllCellReferencesInRange($pRange);
@@ 4151-4154 (lines=4) @@
4148
4149
        if ($pSheet !== null) {
4150
            $pSheetName = $pSheet->getTitle();
4151
            if (strpos($pRange, '!') !== false) {
4152
                list($pSheetName, $pRange) = Worksheet::extractSheetTitle($pRange, true);
4153
                $pSheet = $this->spreadsheet->getSheetByName($pSheetName);
4154
            }
4155
4156
            // Named range?
4157
            $namedRange = NamedRange::resolveRange($pRange, $pSheet);