Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Calculation/Calculation.php 2 locations

@@ 3499-3503 (lines=5) @@
3496
                                $oRow[] = $oCR[1];
3497
                            }
3498
                            $cellRef = Cell::stringFromColumnIndex(min($oCol)) . min($oRow) . ':' . Cell::stringFromColumnIndex(max($oCol)) . max($oRow);
3499
                            if ($pCellParent !== null) {
3500
                                $cellValue = $this->extractCellRange($cellRef, $this->spreadsheet->getSheetByName($sheet1), false);
3501
                            } else {
3502
                                return $this->raiseFormulaError('Unable to access Cell Reference');
3503
                            }
3504
                            $stack->push('Cell Reference', $cellValue, $cellRef);
3505
                        } else {
3506
                            $stack->push('Error', 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');