Code Duplication    Length = 6-6 lines in 2 locations

src/Rule/AndRule.php 2 locations

@@ 542-547 (lines=6) @@
539
                }
540
            }
541
542
            if ( ! empty($operandsByOperator[ AboveRule::operator ])) {
543
                $aboveRule = reset($operandsByOperator[ AboveRule::operator ]);
544
                if (null !== $equalRule->getValue() && $aboveRule->getMinimum() < $equalRule->getValue()) {
545
                    unset($operandsByOperator[ AboveRule::operator ]);
546
                }
547
            }
548
549
            if ( ! empty($operandsByOperator[ BelowRule::operator ])) {
550
                $belowRule = reset($operandsByOperator[ BelowRule::operator ]);
@@ 549-554 (lines=6) @@
546
                }
547
            }
548
549
            if ( ! empty($operandsByOperator[ BelowRule::operator ])) {
550
                $belowRule = reset($operandsByOperator[ BelowRule::operator ]);
551
                if (null !== $equalRule->getValue() && $belowRule->getMaximum() > $equalRule->getValue()) {
552
                    unset($operandsByOperator[ BelowRule::operator ]);
553
                }
554
            }
555
556
            if ( ! empty($operandsByOperator[ InRule::operator ])) {
557
                $possibilities = reset($operandsByOperator[ InRule::operator ])->getPossibilities();