@@ 48-58 (lines=11) @@ | ||
45 | return false; |
|
46 | } |
|
47 | ||
48 | private function escapeValue($value, Escaper $escaper) |
|
49 | { |
|
50 | $value = $this->type->format($value); |
|
51 | ||
52 | if($this->type->isEscapeRequired()) |
|
53 | { |
|
54 | $value = $escaper->escape($value); |
|
55 | } |
|
56 | ||
57 | return $value; |
|
58 | } |
|
59 | } |
|
60 |
@@ 91-101 (lines=11) @@ | ||
88 | return $this->escapeValue($type, $value); |
|
89 | } |
|
90 | ||
91 | private function escapeValue(Type $type, $value) |
|
92 | { |
|
93 | $value = $type->format($value); |
|
94 | ||
95 | if($type->isEscapeRequired()) |
|
96 | { |
|
97 | $value = $this->escaper->escape($value); |
|
98 | } |
|
99 | ||
100 | return $value; |
|
101 | } |
|
102 | ||
103 | private function wrapWithParentheses($value) |
|
104 | { |