@@ -168,11 +168,11 @@ discard block |
||
168 | 168 | public function castColumn(string $column, $type): IQueryFunction { |
169 | 169 | if ($type === IQueryBuilder::PARAM_STR) { |
170 | 170 | $column = $this->helper->quoteColumnName($column); |
171 | - return new QueryFunction('to_char(' . $column . ')'); |
|
171 | + return new QueryFunction('to_char('.$column.')'); |
|
172 | 172 | } |
173 | 173 | if ($type === IQueryBuilder::PARAM_INT) { |
174 | 174 | $column = $this->helper->quoteColumnName($column); |
175 | - return new QueryFunction('to_number(to_char(' . $column . '))'); |
|
175 | + return new QueryFunction('to_number(to_char('.$column.'))'); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | return parent::castColumn($column, $type); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * @inheritdoc |
183 | 183 | */ |
184 | 184 | public function like($x, $y, $type = null): string { |
185 | - return parent::like($x, $y, $type) . " ESCAPE '\\'"; |
|
185 | + return parent::like($x, $y, $type)." ESCAPE '\\'"; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * @inheritdoc |
29 | 29 | */ |
30 | 30 | public function like($x, $y, $type = null): string { |
31 | - return parent::like($x, $y, $type) . " ESCAPE '\\'"; |
|
31 | + return parent::like($x, $y, $type)." ESCAPE '\\'"; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function iLike($x, $y, $type = null): string { |
@@ -49,6 +49,6 @@ |
||
49 | 49 | public function iLike($x, $y, $type = null): string { |
50 | 50 | $x = $this->helper->quoteColumnName($x); |
51 | 51 | $y = $this->helper->quoteColumnName($y); |
52 | - return $this->expressionBuilder->comparison($x, ' COLLATE ' . $this->charset . '_general_ci LIKE', $y); |
|
52 | + return $this->expressionBuilder->comparison($x, ' COLLATE '.$this->charset.'_general_ci LIKE', $y); |
|
53 | 53 | } |
54 | 54 | } |
@@ -40,9 +40,9 @@ |
||
40 | 40 | public function castColumn($column, $type): IQueryFunction { |
41 | 41 | switch ($type) { |
42 | 42 | case IQueryBuilder::PARAM_INT: |
43 | - return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS INT)'); |
|
43 | + return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS INT)'); |
|
44 | 44 | case IQueryBuilder::PARAM_STR: |
45 | - return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS TEXT)'); |
|
45 | + return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS TEXT)'); |
|
46 | 46 | default: |
47 | 47 | return parent::castColumn($column, $type); |
48 | 48 | } |