| @@ 103-107 (lines=5) @@ | ||
| 100 | { |
|
| 101 | if ($conditionsMode == self::CONDITION_GUESS) { |
|
| 102 | $bypass = false; |
|
| 103 | if ($this->leftOperand instanceof Parameter) { |
|
| 104 | if ($this->leftOperand->isDiscardedOnNull() && !isset($parameters[$this->leftOperand->getName()])) { |
|
| 105 | $bypass = true; |
|
| 106 | } |
|
| 107 | } |
|
| 108 | if ($this->rightOperand instanceof Parameter) { |
|
| 109 | if ($this->rightOperand->isDiscardedOnNull() && !isset($parameters[$this->rightOperand->getName()])) { |
|
| 110 | $bypass = true; |
|
| @@ 108-112 (lines=5) @@ | ||
| 105 | $bypass = true; |
|
| 106 | } |
|
| 107 | } |
|
| 108 | if ($this->rightOperand instanceof Parameter) { |
|
| 109 | if ($this->rightOperand->isDiscardedOnNull() && !isset($parameters[$this->rightOperand->getName()])) { |
|
| 110 | $bypass = true; |
|
| 111 | } |
|
| 112 | } |
|
| 113 | if ($bypass === true) { |
|
| 114 | return; |
|
| 115 | } else { |
|
| @@ 160-164 (lines=5) @@ | ||
| 157 | $maxBypass = false; |
|
| 158 | ||
| 159 | if ($conditionsMode == self::CONDITION_GUESS) { |
|
| 160 | if ($this->minValueOperand instanceof Parameter) { |
|
| 161 | if ($this->minValueOperand->isDiscardedOnNull() && !isset($parameters[$this->minValueOperand->getName()])) { |
|
| 162 | $minBypass = true; |
|
| 163 | } |
|
| 164 | } |
|
| 165 | ||
| 166 | if ($this->maxValueOperand instanceof Parameter) { |
|
| 167 | if ($this->maxValueOperand->isDiscardedOnNull() && !isset($parameters[$this->maxValueOperand->getName()])) { |
|
| @@ 166-170 (lines=5) @@ | ||
| 163 | } |
|
| 164 | } |
|
| 165 | ||
| 166 | if ($this->maxValueOperand instanceof Parameter) { |
|
| 167 | if ($this->maxValueOperand->isDiscardedOnNull() && !isset($parameters[$this->maxValueOperand->getName()])) { |
|
| 168 | $maxBypass = true; |
|
| 169 | } |
|
| 170 | } |
|
| 171 | } elseif ($conditionsMode == self::CONDITION_IGNORE) { |
|
| 172 | $minBypass = false; |
|
| 173 | $maxBypass = false; |
|