Code Duplication    Length = 4-4 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 4083-4086 (lines=4) @@
4080
4081
        if ($pSheet !== null) {
4082
            $pSheetName = $pSheet->getTitle();
4083
            if (strpos($pRange, '!') !== false) {
4084
                list($pSheetName, $pRange) = Worksheet::extractSheetTitle($pRange, true);
4085
                $pSheet = $this->spreadsheet->getSheetByName($pSheetName);
4086
            }
4087
4088
            // Extract range
4089
            $aReferences = Cell::extractAllCellReferencesInRange($pRange);
@@ 4136-4139 (lines=4) @@
4133
4134
        if ($pSheet !== null) {
4135
            $pSheetName = $pSheet->getTitle();
4136
            if (strpos($pRange, '!') !== false) {
4137
                list($pSheetName, $pRange) = Worksheet::extractSheetTitle($pRange, true);
4138
                $pSheet = $this->spreadsheet->getSheetByName($pSheetName);
4139
            }
4140
4141
            // Named range?
4142
            $namedRange = NamedRange::resolveRange($pRange, $pSheet);