Passed
Push — master ( 222f48...0fa176 )
by y
01:47
created
src/DB/Fluent/Value/ValueTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * @param scalar[] $values
21 21
      * @return Value
22 22
      */
23
-    public function coalesce (array $values) {
23
+    public function coalesce(array $values) {
24 24
         array_unshift($values, $this);
25 25
         $values = $this->db->quoteList($values);
26 26
         return Value::factory($this->db, "COALESCE({$values})");
Please login to merge, or discard this patch.
src/DB/Fluent/Value/AggregateTrait.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @return Num
20 20
      */
21
-    public function avg () {
21
+    public function avg() {
22 22
         return Num::factory($this->db, "AVG({$this})");
23 23
     }
24 24
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @return Num
29 29
      */
30
-    public function avgDistinct () {
30
+    public function avgDistinct() {
31 31
         return Num::factory($this->db, "AVG(DISTINCT {$this})");
32 32
     }
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @return Num
38 38
      */
39
-    public function count () {
39
+    public function count() {
40 40
         return Num::factory($this->db, "COUNT({$this})");
41 41
     }
42 42
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @return Num
47 47
      */
48
-    public function countDistinct () {
48
+    public function countDistinct() {
49 49
         return Num::factory($this->db, "COUNT(DISTINCT {$this})");
50 50
     }
51 51
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @param string $delimiter
56 56
      * @return Text
57 57
      */
58
-    public function groupConcat (string $delimiter = ',') {
58
+    public function groupConcat(string $delimiter = ',') {
59 59
         $delimiter = $this->db->quote($delimiter);
60 60
         if ($this->db->isSQLite()) {
61 61
             return Text::factory($this->db, "GROUP_CONCAT({$this},{$delimiter})");
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @return Num
70 70
      */
71
-    public function max () {
71
+    public function max() {
72 72
         return Num::factory($this->db, "MAX({$this})");
73 73
     }
74 74
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return Num
79 79
      */
80
-    public function min () {
80
+    public function min() {
81 81
         return Num::factory($this->db, "MIN({$this})");
82 82
     }
83 83
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @return Num
88 88
      */
89
-    public function sum () {
89
+    public function sum() {
90 90
         return Num::factory($this->db, "SUM({$this})");
91 91
     }
92 92
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @return Num
97 97
      */
98
-    public function sumDistinct () {
98
+    public function sumDistinct() {
99 99
         return Num::factory($this->db, "SUM(DISTINCT {$this})");
100 100
     }
101 101
 }
Please login to merge, or discard this patch.
src/DB/Fluent/Expression.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param DB $db
29 29
      * @param string $expression
30 30
      */
31
-    public function __construct (DB $db, string $expression) {
31
+    public function __construct(DB $db, string $expression) {
32 32
         $this->db = $db;
33 33
         $this->expression = $expression;
34 34
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @return string
38 38
      */
39
-    public function __toString () {
39
+    public function __toString() {
40 40
         return $this->expression;
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/DB/Fluent/ExpressionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
     /**
11 11
      * @return string
12 12
      */
13
-    public function __toString ();
13
+    public function __toString();
14 14
 }
Please login to merge, or discard this patch.
src/DB/Fluent/Num/NumCastTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @return Num
16 16
      */
17
-    public function toFloat () {
17
+    public function toFloat() {
18 18
         if ($this->db->isSQLite()) {
19 19
             return Num::factory($this->db, "CAST({$this} AS REAL)");
20 20
         }
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return Num
28 28
      */
29
-    public function toInt () {
29
+    public function toInt() {
30 30
         if ($this->db->isSQLite()) {
31 31
             return Num::factory($this->db, "CAST({$this} AS INTEGER)");
32 32
         }
Please login to merge, or discard this patch.
src/DB/Fluent/Num/BaseConversionTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @param int $to
25 25
      * @return Text
26 26
      */
27
-    public function toBase (int $from, int $to) {
27
+    public function toBase(int $from, int $to) {
28 28
         return Text::factory($this->db, "CONV({$this},{$from},{$to})");
29 29
     }
30 30
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param int $from
37 37
      * @return Text
38 38
      */
39
-    public function toBase16 (int $from = 10) {
39
+    public function toBase16(int $from = 10) {
40 40
         return $this->toBase($from, 16);
41 41
     }
42 42
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param int $from
49 49
      * @return Text
50 50
      */
51
-    public function toBase2 (int $from = 10) {
51
+    public function toBase2(int $from = 10) {
52 52
         return $this->toBase($from, 2);
53 53
     }
54 54
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param int $from
61 61
      * @return Text
62 62
      */
63
-    public function toBase8 (int $from = 10) {
63
+    public function toBase8(int $from = 10) {
64 64
         return $this->toBase($from, 8);
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/DB/Fluent/Num/NumTrait.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @return Num
23 23
      */
24
-    public function abs () {
24
+    public function abs() {
25 25
         return Num::factory($this->db, "ABS({$this})");
26 26
     }
27 27
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return Num
32 32
      */
33
-    public function acos () {
33
+    public function acos() {
34 34
         return Num::factory($this->db, "ACOS({$this})");
35 35
     }
36 36
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @param number|ValueInterface $arg
41 41
      * @return Num
42 42
      */
43
-    public function add ($arg) {
43
+    public function add($arg) {
44 44
         $arg = $this->db->quote($arg);
45 45
         return Num::factory($this->db, "({$this} + {$arg})");
46 46
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @return Num
52 52
      */
53
-    public function asin () {
53
+    public function asin() {
54 54
         return Num::factory($this->db, "ASIN({$this})");
55 55
     }
56 56
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @return Num
61 61
      */
62
-    public function atan () {
62
+    public function atan() {
63 63
         return Num::factory($this->db, "ATAN({$this})");
64 64
     }
65 65
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @return Num
70 70
      */
71
-    public function ceil () {
71
+    public function ceil() {
72 72
         return Num::factory($this->db, "CEIL({$this})");
73 73
     }
74 74
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return Num
79 79
      */
80
-    public function cos () {
80
+    public function cos() {
81 81
         return Num::factory($this->db, "COS({$this})");
82 82
     }
83 83
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @return Num
90 90
      */
91
-    public function degrees () {
91
+    public function degrees() {
92 92
         return Num::factory($this->db, "DEGREES({$this})");
93 93
     }
94 94
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param number|ValueInterface $arg
99 99
      * @return Num
100 100
      */
101
-    public function div ($arg) {
101
+    public function div($arg) {
102 102
         $arg = $this->db->quote($arg);
103 103
         return Num::factory($this->db, "({$this} / {$arg})");
104 104
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return Num
112 112
      */
113
-    public function exp () {
113
+    public function exp() {
114 114
         return Num::factory($this->db, "EXP({$this})");
115 115
     }
116 116
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      *
120 120
      * @return Num
121 121
      */
122
-    public function floor () {
122
+    public function floor() {
123 123
         return Num::factory($this->db, "FLOOR({$this})");
124 124
     }
125 125
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      *
129 129
      * @return Predicate
130 130
      */
131
-    public function isEven () {
131
+    public function isEven() {
132 132
         return Predicate::factory($this->db, "({$this} % 2) = 0");
133 133
     }
134 134
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @return Predicate
139 139
      */
140
-    public function isNegative () {
140
+    public function isNegative() {
141 141
         return Predicate::factory($this->db, "{$this} < 0");
142 142
     }
143 143
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      *
147 147
      * @return Predicate
148 148
      */
149
-    public function isOdd () {
149
+    public function isOdd() {
150 150
         return Predicate::factory($this->db, "({$this} % 2) <> 0");
151 151
     }
152 152
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * @return Predicate
157 157
      */
158
-    public function isPositive () {
158
+    public function isPositive() {
159 159
         return Predicate::factory($this->db, "{$this} > 0");
160 160
     }
161 161
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      *
165 165
      * @return Num
166 166
      */
167
-    public function ln () {
167
+    public function ln() {
168 168
         return Num::factory($this->db, "LN({$this})");
169 169
     }
170 170
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      * @param float $base
177 177
      * @return Num
178 178
      */
179
-    public function log (float $base) {
179
+    public function log(float $base) {
180 180
         return Num::factory($this->db, "LOG({$base},{$this})");
181 181
     }
182 182
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      *
186 186
      * @return Num
187 187
      */
188
-    public function log10 () {
188
+    public function log10() {
189 189
         return Num::factory($this->db, "LOG10({$this})");
190 190
     }
191 191
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      *
195 195
      * @return Num
196 196
      */
197
-    public function log2 () {
197
+    public function log2() {
198 198
         return Num::factory($this->db, "LOG2({$this})");
199 199
     }
200 200
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      * @param float $divisor
205 205
      * @return Num
206 206
      */
207
-    public function mod (float $divisor) {
207
+    public function mod(float $divisor) {
208 208
         return Num::factory($this->db, "({$this} % {$divisor})");
209 209
     }
210 210
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      * @param number|ValueInterface $arg
215 215
      * @return Num
216 216
      */
217
-    public function mul ($arg) {
217
+    public function mul($arg) {
218 218
         $arg = $this->db->quote($arg);
219 219
         return Num::factory($this->db, "({$this} * {$arg})");
220 220
     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      * @param float $exponent
226 226
      * @return Num
227 227
      */
228
-    public function pow (float $exponent) {
228
+    public function pow(float $exponent) {
229 229
         return Num::factory($this->db, "POW({$this},{$exponent})");
230 230
     }
231 231
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      *
237 237
      * @return Num
238 238
      */
239
-    public function radians () {
239
+    public function radians() {
240 240
         return Num::factory($this->db, "RADIANS({$this})");
241 241
     }
242 242
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      * @param int $decimals
247 247
      * @return Num
248 248
      */
249
-    public function round (int $decimals = 0) {
249
+    public function round(int $decimals = 0) {
250 250
         return Num::factory($this->db, "ROUND({$this},{$decimals})");
251 251
     }
252 252
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      *
256 256
      * @return Num `-1`, `0`, `1`
257 257
      */
258
-    public function sign () {
258
+    public function sign() {
259 259
         return Num::factory($this->db, "SIGN({$this})");
260 260
     }
261 261
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      *
265 265
      * @return Num
266 266
      */
267
-    public function sin () {
267
+    public function sin() {
268 268
         return Num::factory($this->db, "SIN({$this})");
269 269
     }
270 270
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      *
274 274
      * @return Num
275 275
      */
276
-    public function sqrt () {
276
+    public function sqrt() {
277 277
         return Num::factory($this->db, "SQRT({$this})");
278 278
     }
279 279
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * @param number|ValueInterface $arg
284 284
      * @return Num
285 285
      */
286
-    public function sub ($arg) {
286
+    public function sub($arg) {
287 287
         $arg = $this->db->quote($arg);
288 288
         return Num::factory($this->db, "({$this} - {$arg})");
289 289
     }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      *
294 294
      * @return Num
295 295
      */
296
-    public function tan () {
296
+    public function tan() {
297 297
         return Num::factory($this->db, "TAN({$this})");
298 298
     }
299 299
 }
Please login to merge, or discard this patch.
src/DB/Fluent/Text/TextTrait.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      *
23 23
      * @return Text
24 24
      */
25
-    public function hex () {
25
+    public function hex() {
26 26
         return Text::factory($this->db, "HEX({$this})");
27 27
     }
28 28
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @return Num
35 35
      */
36
-    public function length () {
36
+    public function length() {
37 37
         if ($this->db->isSQLite()) {
38 38
             return Num::factory($this->db, "LENGTH(CAST({$this} AS TEXT))");
39 39
         }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *
48 48
      * @return Text
49 49
      */
50
-    public function lower () {
50
+    public function lower() {
51 51
         return Text::factory($this->db, "LOWER({$this})");
52 52
     }
53 53
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @param string $substring
60 60
      * @return Num
61 61
      */
62
-    public function position (string $substring) {
62
+    public function position(string $substring) {
63 63
         $substring = $this->db->quote($substring);
64 64
         if ($this->db->isSQLite()) {
65 65
             return Num::factory($this->db, "INSTR({$this},{$substring})");
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @param string $replace
77 77
      * @return Text
78 78
      */
79
-    public function replace (string $search, string $replace) {
79
+    public function replace(string $search, string $replace) {
80 80
         $search = $this->db->quote($search);
81 81
         $replace = $this->db->quote($replace);
82 82
         return Text::factory($this->db, "REPLACE({$this},{$search},{$replace})");
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @return Num
89 89
      */
90
-    public function size () {
90
+    public function size() {
91 91
         if ($this->db->isSQLite()) {
92 92
             return Num::factory($this->db, "LENGTH(CAST({$this} AS BLOB))");
93 93
         }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param null|int $length
104 104
      * @return Text
105 105
      */
106
-    public function substr (int $start, int $length = null) {
106
+    public function substr(int $start, int $length = null) {
107 107
         if (isset($length)) {
108 108
             return Text::factory($this->db, "SUBSTR({$this},{$start},{$length})");
109 109
         }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param int $from
119 119
      * @return Num
120 120
      */
121
-    public function toBase10 (int $from) {
121
+    public function toBase10(int $from) {
122 122
         return Num::factory($this->db, "CONV({$this},{$from},10)");
123 123
     }
124 124
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      *
130 130
      * @return Text
131 131
      */
132
-    public function upper () {
132
+    public function upper() {
133 133
         return Text::factory($this->db, "UPPER({$this})");
134 134
     }
135 135
 }
Please login to merge, or discard this patch.
src/DB/Fluent/Text/TextCastTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      *
15 15
      * @return Text
16 16
      */
17
-    public function toText () {
17
+    public function toText() {
18 18
         if ($this->db->isSQLite()) {
19 19
             return Text::factory($this->db, "CAST({$this} AS TEXT)");
20 20
         }
Please login to merge, or discard this patch.