Code Duplication    Length = 4-4 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 3699-3702 (lines=4) @@
3696
                        $cellRef = $matches[6].$matches[7].':'.$matches[9].$matches[10];
3697
                        if ($matches[2] > '') {
3698
                            $matches[2] = trim($matches[2], "\"'");
3699
                            if ((strpos($matches[2], '[') !== false) || (strpos($matches[2], ']') !== false)) {
3700
                                //    It's a Reference to an external spreadsheet (not currently supported)
3701
                                return $this->raiseFormulaError('Unable to access External Workbook');
3702
                            }
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]);
@@ 3733-3736 (lines=4) @@
3730
                        $cellRef = $matches[6].$matches[7];
3731
                        if ($matches[2] > '') {
3732
                            $matches[2] = trim($matches[2], "\"'");
3733
                            if ((strpos($matches[2], '[') !== false) || (strpos($matches[2], ']') !== false)) {
3734
                                //    It's a Reference to an external spreadsheet (not currently supported)
3735
                                return $this->raiseFormulaError('Unable to access External Workbook');
3736
                            }
3737
//                            echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'<br />';
3738
                            $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]);
3739
                            if ($pCellParent !== null) {