Code Duplication    Length = 6-6 lines in 2 locations

src/PhpSpreadsheet/Calculation.php 2 locations

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