Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

@@ 3833-3838 (lines=6) @@
3830
        if ((is_array($operand1)) || (is_array($operand2))) {
3831
            $result = [];
3832
            if ((is_array($operand1)) && (!is_array($operand2))) {
3833
                foreach ($operand1 as $x => $operandData) {
3834
                    $this->debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operandData), ' ', $operation, ' ', $this->showValue($operand2));
3835
                    $this->executeBinaryComparisonOperation($cellID, $operandData, $operand2, $operation, $stack);
3836
                    $r = $stack->pop();
3837
                    $result[$x] = $r['value'];
3838
                }
3839
            } elseif ((!is_array($operand1)) && (is_array($operand2))) {
3840
                foreach ($operand2 as $x => $operandData) {
3841
                    $this->debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operand1), ' ', $operation, ' ', $this->showValue($operandData));
@@ 3840-3845 (lines=6) @@
3837
                    $result[$x] = $r['value'];
3838
                }
3839
            } elseif ((!is_array($operand1)) && (is_array($operand2))) {
3840
                foreach ($operand2 as $x => $operandData) {
3841
                    $this->debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operand1), ' ', $operation, ' ', $this->showValue($operandData));
3842
                    $this->executeBinaryComparisonOperation($cellID, $operand1, $operandData, $operation, $stack);
3843
                    $r = $stack->pop();
3844
                    $result[$x] = $r['value'];
3845
                }
3846
            } else {
3847
                if (!$recursingArrays) {
3848
                    self::checkMatrixOperands($operand1, $operand2, 2);