Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 3489-3497 (lines=9) @@
3486
                            $sheet2 = $sheet1;
3487
                        }
3488
                        if ($sheet1 == $sheet2) {
3489
                            if ($operand1Data['reference'] === null) {
3490
                                if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) {
3491
                                    $operand1Data['reference'] = $pCell->getColumn() . $operand1Data['value'];
3492
                                } elseif (trim($operand1Data['reference']) == '') {
3493
                                    $operand1Data['reference'] = $pCell->getCoordinate();
3494
                                } else {
3495
                                    $operand1Data['reference'] = $operand1Data['value'] . $pCell->getRow();
3496
                                }
3497
                            }
3498
                            if ($operand2Data['reference'] === null) {
3499
                                if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) {
3500
                                    $operand2Data['reference'] = $pCell->getColumn() . $operand2Data['value'];
@@ 3498-3506 (lines=9) @@
3495
                                    $operand1Data['reference'] = $operand1Data['value'] . $pCell->getRow();
3496
                                }
3497
                            }
3498
                            if ($operand2Data['reference'] === null) {
3499
                                if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) {
3500
                                    $operand2Data['reference'] = $pCell->getColumn() . $operand2Data['value'];
3501
                                } elseif (trim($operand2Data['reference']) == '') {
3502
                                    $operand2Data['reference'] = $pCell->getCoordinate();
3503
                                } else {
3504
                                    $operand2Data['reference'] = $operand2Data['value'] . $pCell->getRow();
3505
                                }
3506
                            }
3507
3508
                            $oData = array_merge(explode(':', $operand1Data['reference']), explode(':', $operand2Data['reference']));
3509
                            $oCol = $oRow = [];