Code Duplication    Length = 6-6 lines in 2 locations

src/Rule/AndRule.php 2 locations

@@ 555-560 (lines=6) @@
552
                }
553
            }
554
555
            if ( ! empty($operandsByOperator[ AboveRule::operator ])) {
556
                $aboveRule = reset($operandsByOperator[ AboveRule::operator ]);
557
                if (null !== $equalRule->getValue() && $aboveRule->getLowerLimit() < $equalRule->getValue()) {
558
                    unset($operandsByOperator[ AboveRule::operator ]);
559
                }
560
            }
561
562
            if ( ! empty($operandsByOperator[ BelowRule::operator ])) {
563
                $belowRule = reset($operandsByOperator[ BelowRule::operator ]);
@@ 562-567 (lines=6) @@
559
                }
560
            }
561
562
            if ( ! empty($operandsByOperator[ BelowRule::operator ])) {
563
                $belowRule = reset($operandsByOperator[ BelowRule::operator ]);
564
                if (null !== $equalRule->getValue() && $belowRule->getUpperLimit() > $equalRule->getValue()) {
565
                    unset($operandsByOperator[ BelowRule::operator ]);
566
                }
567
            }
568
569
            if ( ! empty($operandsByOperator[ InRule::operator ])) {
570
                $possibilities = reset($operandsByOperator[ InRule::operator ])->getPossibilities();