Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 3586-3590 (lines=5) @@
3583
                                $oRow[] = $oCR[1];
3584
                            }
3585
                            $cellRef = Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.Cell::stringFromColumnIndex(max($oCol)).max($oRow);
3586
                            if ($pCellParent !== null) {
3587
                                $cellValue = $this->extractCellRange($cellRef, $this->spreadsheet->getSheetByName($sheet1), false);
3588
                            } else {
3589
                                return $this->raiseFormulaError('Unable to access Cell Reference');
3590
                            }
3591
                            $stack->push('Cell Reference', $cellValue, $cellRef);
3592
                        } else {
3593
                            $stack->push('Error', Calculation\Functions::REF(), null);
@@ 3706-3710 (lines=5) @@
3703
                            $matches[2] = trim($matches[2], "\"'");
3704
//                            echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'<br />';
3705
                            $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in worksheet ', $matches[2]);
3706
                            if ($pCellParent !== null) {
3707
                                $cellValue = $this->extractCellRange($cellRef, $this->spreadsheet->getSheetByName($matches[2]), false);
3708
                            } else {
3709
                                return $this->raiseFormulaError('Unable to access Cell Reference');
3710
                            }
3711
                            $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->showTypeDetails($cellValue));
3712
//                            $cellRef = $matches[2].'!'.$cellRef;
3713
                        } else {