Passed
Push — master ( 11858a...a6246b )
by Joas
30:41 queued 15:22
created
lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,11 +168,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/ExpressionBuilder/MySqlExpressionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,6 +49,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.