Passed
Push — master ( ce5e60...b24b74 )
by Roeland
14:46 queued 10s
created
lib/private/DB/QueryBuilder/FunctionBuilder/PgSqlFunctionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
 
30 30
 class PgSqlFunctionBuilder extends FunctionBuilder {
31 31
 	public function concat($x, $y): IQueryFunction {
32
-		return new QueryFunction('(' . $this->helper->quoteColumnName($x) . ' || ' . $this->helper->quoteColumnName($y) . ')');
32
+		return new QueryFunction('('.$this->helper->quoteColumnName($x).' || '.$this->helper->quoteColumnName($y).')');
33 33
 	}
34 34
 }
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/FunctionBuilder/OCIFunctionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
 class OCIFunctionBuilder extends FunctionBuilder {
32 32
 	public function md5($input): IQueryFunction {
33
-		return new QueryFunction('LOWER(DBMS_OBFUSCATION_TOOLKIT.md5 (input => UTL_RAW.cast_to_raw(' . $this->helper->quoteColumnName($input) .')))');
33
+		return new QueryFunction('LOWER(DBMS_OBFUSCATION_TOOLKIT.md5 (input => UTL_RAW.cast_to_raw('.$this->helper->quoteColumnName($input).')))');
34 34
 	}
35 35
 
36 36
 	/**
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/FunctionBuilder/FunctionBuilder.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,56 +43,56 @@
 block discarded – undo
43 43
 	}
44 44
 
45 45
 	public function md5($input): IQueryFunction {
46
-		return new QueryFunction('MD5(' . $this->helper->quoteColumnName($input) . ')');
46
+		return new QueryFunction('MD5('.$this->helper->quoteColumnName($input).')');
47 47
 	}
48 48
 
49 49
 	public function concat($x, $y): IQueryFunction {
50
-		return new QueryFunction('CONCAT(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
50
+		return new QueryFunction('CONCAT('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
51 51
 	}
52 52
 
53 53
 	public function substring($input, $start, $length = null): IQueryFunction {
54 54
 		if ($length) {
55
-			return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ', ' . $this->helper->quoteColumnName($length) . ')');
55
+			return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).', '.$this->helper->quoteColumnName($length).')');
56 56
 		} else {
57
-			return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ')');
57
+			return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).')');
58 58
 		}
59 59
 	}
60 60
 
61 61
 	public function sum($field): IQueryFunction {
62
-		return new QueryFunction('SUM(' . $this->helper->quoteColumnName($field) . ')');
62
+		return new QueryFunction('SUM('.$this->helper->quoteColumnName($field).')');
63 63
 	}
64 64
 
65 65
 	public function lower($field): IQueryFunction {
66
-		return new QueryFunction('LOWER(' . $this->helper->quoteColumnName($field) . ')');
66
+		return new QueryFunction('LOWER('.$this->helper->quoteColumnName($field).')');
67 67
 	}
68 68
 
69 69
 	public function add($x, $y): IQueryFunction {
70
-		return new QueryFunction($this->helper->quoteColumnName($x) . ' + ' . $this->helper->quoteColumnName($y));
70
+		return new QueryFunction($this->helper->quoteColumnName($x).' + '.$this->helper->quoteColumnName($y));
71 71
 	}
72 72
 
73 73
 	public function subtract($x, $y): IQueryFunction {
74
-		return new QueryFunction($this->helper->quoteColumnName($x) . ' - ' . $this->helper->quoteColumnName($y));
74
+		return new QueryFunction($this->helper->quoteColumnName($x).' - '.$this->helper->quoteColumnName($y));
75 75
 	}
76 76
 
77 77
 	public function count($count = '', $alias = ''): IQueryFunction {
78
-		$alias = $alias ? (' AS ' . $this->helper->quoteColumnName($alias)) : '';
78
+		$alias = $alias ? (' AS '.$this->helper->quoteColumnName($alias)) : '';
79 79
 		$quotedName = $count === '' ? '*' : $this->helper->quoteColumnName($count);
80
-		return new QueryFunction('COUNT(' . $quotedName . ')' . $alias);
80
+		return new QueryFunction('COUNT('.$quotedName.')'.$alias);
81 81
 	}
82 82
 
83 83
 	public function max($field): IQueryFunction {
84
-		return new QueryFunction('MAX(' . $this->helper->quoteColumnName($field) . ')');
84
+		return new QueryFunction('MAX('.$this->helper->quoteColumnName($field).')');
85 85
 	}
86 86
 
87 87
 	public function min($field): IQueryFunction {
88
-		return new QueryFunction('MIN(' . $this->helper->quoteColumnName($field) . ')');
88
+		return new QueryFunction('MIN('.$this->helper->quoteColumnName($field).')');
89 89
 	}
90 90
 
91 91
 	public function greatest($x, $y): IQueryFunction {
92
-		return new QueryFunction('GREATEST(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
92
+		return new QueryFunction('GREATEST('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
93 93
 	}
94 94
 
95 95
 	public function least($x, $y): IQueryFunction {
96
-		return new QueryFunction('LEAST(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
96
+		return new QueryFunction('LEAST('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
97 97
 	}
98 98
 }
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/FunctionBuilder/SqliteFunctionBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
 
30 30
 class SqliteFunctionBuilder extends FunctionBuilder {
31 31
 	public function concat($x, $y): IQueryFunction {
32
-		return new QueryFunction('(' . $this->helper->quoteColumnName($x) . ' || ' . $this->helper->quoteColumnName($y) . ')');
32
+		return new QueryFunction('('.$this->helper->quoteColumnName($x).' || '.$this->helper->quoteColumnName($y).')');
33 33
 	}
34 34
 
35 35
 	public function greatest($x, $y): IQueryFunction {
36
-		return new QueryFunction('MAX(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
36
+		return new QueryFunction('MAX('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
37 37
 	}
38 38
 
39 39
 	public function least($x, $y): IQueryFunction {
40
-		return new QueryFunction('MIN(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
40
+		return new QueryFunction('MIN('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
41 41
 	}
42 42
 }
Please login to merge, or discard this patch.