Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 3459-3467 (lines=9) @@
3456
                            $sheet2 = $sheet1;
3457
                        }
3458
                        if ($sheet1 == $sheet2) {
3459
                            if ($operand1Data['reference'] === null) {
3460
                                if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) {
3461
                                    $operand1Data['reference'] = $pCell->getColumn() . $operand1Data['value'];
3462
                                } elseif (trim($operand1Data['reference']) == '') {
3463
                                    $operand1Data['reference'] = $pCell->getCoordinate();
3464
                                } else {
3465
                                    $operand1Data['reference'] = $operand1Data['value'] . $pCell->getRow();
3466
                                }
3467
                            }
3468
                            if ($operand2Data['reference'] === null) {
3469
                                if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) {
3470
                                    $operand2Data['reference'] = $pCell->getColumn() . $operand2Data['value'];
@@ 3468-3476 (lines=9) @@
3465
                                    $operand1Data['reference'] = $operand1Data['value'] . $pCell->getRow();
3466
                                }
3467
                            }
3468
                            if ($operand2Data['reference'] === null) {
3469
                                if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) {
3470
                                    $operand2Data['reference'] = $pCell->getColumn() . $operand2Data['value'];
3471
                                } elseif (trim($operand2Data['reference']) == '') {
3472
                                    $operand2Data['reference'] = $pCell->getCoordinate();
3473
                                } else {
3474
                                    $operand2Data['reference'] = $operand2Data['value'] . $pCell->getRow();
3475
                                }
3476
                            }
3477
3478
                            $oData = array_merge(explode(':', $operand1Data['reference']), explode(':', $operand2Data['reference']));
3479
                            $oCol = $oRow = [];