|
@@ 267-272 (lines=6) @@
|
| 264 |
|
|
| 265 |
|
$equalRule = reset($operandsByOperator[ EqualRule::operator ]); |
| 266 |
|
|
| 267 |
|
if ( ! empty($operandsByOperator[ BelowRule::operator ]) |
| 268 |
|
&& null === $equalRule->getValue() |
| 269 |
|
) { |
| 270 |
|
$this->operands = []; |
| 271 |
|
return $this; |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
if ( ! empty($operandsByOperator[ BelowRule::operator ]) |
| 275 |
|
&& $equalRule->getValue() >= reset($operandsByOperator[ BelowRule::operator ])->getUpperLimit() |
|
@@ 281-286 (lines=6) @@
|
| 278 |
|
return $this; |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
if ( ! empty($operandsByOperator[ AboveRule::operator ]) |
| 282 |
|
&& null === $equalRule->getValue() |
| 283 |
|
) { |
| 284 |
|
$this->operands = []; |
| 285 |
|
return $this; |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
if ( ! empty($operandsByOperator[ AboveRule::operator ]) |
| 289 |
|
&& $equalRule->getValue() <= reset($operandsByOperator[ AboveRule::operator ])->getLowerLimit() |