Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 3509-3513 (lines=5) @@
3506
                                $oRow[] = $oCR[1];
3507
                            }
3508
                            $cellRef = Cell::stringFromColumnIndex(min($oCol)) . min($oRow) . ':' . Cell::stringFromColumnIndex(max($oCol)) . max($oRow);
3509
                            if ($pCellParent !== null) {
3510
                                $cellValue = $this->extractCellRange($cellRef, $this->spreadsheet->getSheetByName($sheet1), false);
3511
                            } else {
3512
                                return $this->raiseFormulaError('Unable to access Cell Reference');
3513
                            }
3514
                            $stack->push('Cell Reference', $cellValue, $cellRef);
3515
                        } else {
3516
                            $stack->push('Error', Calculation\Functions::REF(), null);
@@ 3623-3627 (lines=5) @@
3620
                            }
3621
                            $matches[2] = trim($matches[2], "\"'");
3622
                            $this->debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in worksheet ', $matches[2]);
3623
                            if ($pCellParent !== null) {
3624
                                $cellValue = $this->extractCellRange($cellRef, $this->spreadsheet->getSheetByName($matches[2]), false);
3625
                            } else {
3626
                                return $this->raiseFormulaError('Unable to access Cell Reference');
3627
                            }
3628
                            $this->debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->showTypeDetails($cellValue));
3629
                        } else {
3630
                            $this->debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in current worksheet');