Code Duplication    Length = 6-6 lines in 3 locations

src/Rule/AndRule.php 3 locations

@@ 267-272 (lines=6) @@
264
                    return $this;
265
                }
266
267
                if (   ! empty($operandsByOperator[ BelowRule::operator ])
268
                    && $equalRule->getValue() >= reset($operandsByOperator[ BelowRule::operator ])->getMaximum()
269
                ) {
270
                    $this->operands = [];
271
                    return $this;
272
                }
273
274
                if (   ! empty($operandsByOperator[ AboveRule::operator ])
275
                    && null === $equalRule->getValue()
@@ 281-286 (lines=6) @@
278
                    return $this;
279
                }
280
281
                if (   ! empty($operandsByOperator[ AboveRule::operator ])
282
                    && $equalRule->getValue() <= reset($operandsByOperator[ AboveRule::operator ])->getMinimum()
283
                ) {
284
                    $this->operands = [];
285
                    return $this;
286
                }
287
288
                if (   ! empty($operandsByOperator[ NotEqualRule::operator ])
289
                    && $equalRule->getValue() == reset($operandsByOperator[ NotEqualRule::operator ])->getValue()
@@ 288-293 (lines=6) @@
285
                    return $this;
286
                }
287
288
                if (   ! empty($operandsByOperator[ NotEqualRule::operator ])
289
                    && $equalRule->getValue() == reset($operandsByOperator[ NotEqualRule::operator ])->getValue()
290
                ) {
291
                    $this->operands = [];
292
                    return $this;
293
                }
294
295
                if (   ! empty($operandsByOperator[ NotEqualRule::operator ])
296
                    && null === $equalRule->getValue()