Passed
Push — main ( 395cb7...c4aba7 )
by BRUNO
11:16
created
src/CrudBuilder.php 1 patch
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 abstract class CrudBuilder extends Crud
16 16
 {
17 17
     /**
18
-    * @var array
18
+     * @var array
19 19
      */
20 20
     private array $sqlPartsSelect = [
21 21
         'main'      => [],
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      *
38
-    * <code>
39
-    *   $qb = $this->select('u.id, p.id')
40
-    *           ->where('phonenumbers=?', [$number]);
41
-    * </code>
42
-    * @param string $fields
43
-    * @param array $paramns
44
-    * @return $this
38
+     * <code>
39
+     *   $qb = $this->select('u.id, p.id')
40
+     *           ->where('phonenumbers=?', [$number]);
41
+     * </code>
42
+     * @param string $fields
43
+     * @param array $paramns
44
+     * @return $this
45 45
      */
46 46
     protected function selectBuilder(string $fields = "*", array $paramns = []): self
47 47
     {
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-    * @param string $fields
61
-    * @param array $paramns
62
-    * @return $this
60
+     * @param string $fields
61
+     * @param array $paramns
62
+     * @return $this
63 63
      */
64 64
     protected function insertBuilder(string $fields, array $paramns): self
65 65
     {
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-    * @param string $fields
82
-    * @param array $paramns
83
-    * @return $this
81
+     * @param string $fields
82
+     * @param array $paramns
83
+     * @return $this
84 84
      */
85 85
     protected function updateBuilder(string $fields, array $paramns): self
86 86
     {
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
     }
102 102
 
103 103
     /**
104
-    * @param string $fields
105
-    * @param array $paramns
106
-    * @return $this
104
+     * @param string $fields
105
+     * @param array $paramns
106
+     * @return $this
107 107
      */
108 108
     protected function deleteBuilder(): self
109 109
     {
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
     }
118 118
 
119 119
     /**
120
-    * @param string $query
121
-    * @param array $paramns
122
-    * @return $this
120
+     * @param string $query
121
+     * @param array $paramns
122
+     * @return $this
123 123
      */
124 124
     protected function query(string $query, array $paramns = []): self
125 125
     {
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
     }
133 133
 
134 134
     /**
135
-    * @param string $texto
136
-    * @param array $paramns
137
-    * @return $this
135
+     * @param string $texto
136
+     * @param array $paramns
137
+     * @return $this
138 138
      */
139 139
     protected function where(string $texto, array $paramns = []): self
140 140
     {
@@ -148,9 +148,9 @@  discard block
 block discarded – undo
148 148
     }
149 149
 
150 150
     /**
151
-    * @param string $condition
152
-    * @param array $paramns
153
-    * @return $this
151
+     * @param string $condition
152
+     * @param array $paramns
153
+     * @return $this
154 154
      */
155 155
     protected function andWhere(string $condition, array $paramns = []): self
156 156
     {
@@ -164,9 +164,9 @@  discard block
 block discarded – undo
164 164
     }
165 165
 
166 166
     /**
167
-    * @param string $condition
168
-    * @param array $paramns
169
-    * @return $this
167
+     * @param string $condition
168
+     * @param array $paramns
169
+     * @return $this
170 170
      */
171 171
     protected function orWhere(string $condition, array $paramns = []): self
172 172
     {
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
     }
181 181
 
182 182
     /**
183
-    * @param string $parameter
184
-    * @param $order
185
-    * @return $this
183
+     * @param string $parameter
184
+     * @param $order
185
+     * @return $this
186 186
      */
187 187
     protected function orderBy(string $parameter, $order = null): self
188 188
     {
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
     }
197 197
 
198 198
     /**
199
-    * @param string $parameter
200
-    * @param $order
201
-    * @return $this
199
+     * @param string $parameter
200
+     * @param $order
201
+     * @return $this
202 202
      */
203 203
     protected function addOrderBy(string $parameter, $order = null): self
204 204
     {
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
     }
213 213
 
214 214
     /**
215
-    * @param string $texto
216
-    * @return $this
215
+     * @param string $texto
216
+     * @return $this
217 217
      */
218 218
     protected function limit(string $texto): self
219 219
     {
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
     }
224 224
 
225 225
     /**
226
-    * @param string $texto
227
-    * @return $this
226
+     * @param string $texto
227
+     * @return $this
228 228
      */
229 229
     protected function offset(string $texto): self
230 230
     {
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
     }
239 239
 
240 240
     /**
241
-    * @param string $texto
242
-    * @return $this
241
+     * @param string $texto
242
+     * @return $this
243 243
      */
244 244
     protected function groupBy(string $texto): self
245 245
     {
@@ -253,8 +253,8 @@  discard block
 block discarded – undo
253 253
     }
254 254
 
255 255
     /**
256
-    * @param string $texto
257
-    * @return $this
256
+     * @param string $texto
257
+     * @return $this
258 258
      */
259 259
     protected function having(string $texto): self
260 260
     {
@@ -298,10 +298,10 @@  discard block
 block discarded – undo
298 298
     }
299 299
 
300 300
     /**
301
-    * @param string $table
302
-    * @param string $alias
303
-    * @param string $codition
304
-    * @return $this
301
+     * @param string $table
302
+     * @param string $alias
303
+     * @param string $codition
304
+     * @return $this
305 305
      */
306 306
     protected function innerJoin(string $table, string $alias, string $codition): self
307 307
     {
@@ -315,10 +315,10 @@  discard block
 block discarded – undo
315 315
     }
316 316
 
317 317
     /**
318
-    * @param string $table
319
-    * @param string $alias
320
-    * @param string $codition
321
-    * @return $this
318
+     * @param string $table
319
+     * @param string $alias
320
+     * @param string $codition
321
+     * @return $this
322 322
      */
323 323
     protected function leftJoin(string $table, string $alias, string $codition): self
324 324
     {
@@ -332,10 +332,10 @@  discard block
 block discarded – undo
332 332
     }
333 333
 
334 334
     /**
335
-    * @param string $table
336
-    * @param string $alias
337
-    * @param string $codition
338
-    * @return $this
335
+     * @param string $table
336
+     * @param string $alias
337
+     * @param string $codition
338
+     * @return $this
339 339
      */
340 340
     protected function rightJoin(string $table, string $alias, string $codition): self
341 341
     {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     }
374 374
 
375 375
     /**
376
-    * @return void
376
+     * @return void
377 377
      */
378 378
     protected function debug(): void
379 379
     {
@@ -387,10 +387,10 @@  discard block
 block discarded – undo
387 387
 
388 388
 
389 389
     /**
390
-    * @param string $query
391
-    * @param string $type
392
-    * @param array $params
393
-    * @return void
390
+     * @param string $query
391
+     * @param string $type
392
+     * @param array $params
393
+     * @return void
394 394
      */
395 395
     private function add(string $query, string $type, array $params = []): void
396 396
     {
Please login to merge, or discard this patch.