src/Conditions/AbstractComparisonOperatorCondition.php 1 location
|
@@ 61-71 (lines=11) @@
|
58 |
|
|
59 |
|
abstract protected function getConditionOperator(): string; |
60 |
|
|
61 |
|
private function escapeValue($value, Escaper $escaper) |
62 |
|
{ |
63 |
|
$value = $this->leftOperand->format($value); |
64 |
|
|
65 |
|
if($this->leftOperand->isEscapeRequired()) |
66 |
|
{ |
67 |
|
$value = $escaper->escape($value); |
68 |
|
} |
69 |
|
|
70 |
|
return $value; |
71 |
|
} |
72 |
|
} |
73 |
|
|
src/Conditions/Between.php 1 location
|
@@ 52-62 (lines=11) @@
|
49 |
|
return false; |
50 |
|
} |
51 |
|
|
52 |
|
private function escapeValue($value, Escaper $escaper) |
53 |
|
{ |
54 |
|
$value = $this->column->format($value); |
55 |
|
|
56 |
|
if($this->column->isEscapeRequired()) |
57 |
|
{ |
58 |
|
$value = $escaper->escape($value); |
59 |
|
} |
60 |
|
|
61 |
|
return $value; |
62 |
|
} |
63 |
|
} |
64 |
|
|