Passed
Push — main ( 8cd2b3...6b394b )
by BRUNO
02:00
created
src/DatalayerTrait.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
     }
144 144
 
145 145
     /**
146
-        * @param string $tableName
147
-        * @param string $tableAlias
148
-        * @return CrudBuilder|Crud|DatalayerTrait
146
+     * @param string $tableName
147
+     * @param string $tableAlias
148
+     * @return CrudBuilder|Crud|DatalayerTrait
149 149
      */
150 150
     protected function setTable(string $tableName, string $tableAlias = ""): self
151 151
     {
@@ -199,9 +199,9 @@  discard block
 block discarded – undo
199 199
     }
200 200
 
201 201
     /**
202
-        * @param string $query
203
-        * @param array|null $params
204
-        * @return PDOStatement|void
202
+     * @param string $query
203
+     * @param array|null $params
204
+     * @return PDOStatement|void
205 205
      */
206 206
     protected function executeSQL(string $query, ?array $params = null)
207 207
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         try {
75 75
             if (strpos($_SERVER['SERVER_NAME'], mb_strtolower(CONFIG_DATA_LAYER["homologation"])) && !strpos($this->getDatabase(), ucfirst(CONFIG_DATA_LAYER["homologation"]))) {
76
-                $database = $this->getDatabase().ucfirst(CONFIG_DATA_LAYER["homologation"] ?? "");
76
+                $database = $this->getDatabase() . ucfirst(CONFIG_DATA_LAYER["homologation"] ?? "");
77 77
                 $this->setDatabase($database);
78 78
             }
79 79
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             $prepare = empty($prepare) ? $this->getPrepare() : $prepare;
226 226
             return $prepare->rowCount();
227 227
         } catch (PDOException $e) {
228
-            $this->setError($e);}
228
+            $this->setError($e); }
229 229
     }
230 230
 
231 231
     /**
Please login to merge, or discard this patch.
src/CrudBuilder.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     use DatalayerTrait;
18 18
 
19 19
     /**
20
-    * @var array
20
+     * @var array
21 21
      */
22 22
     private array $sqlPartsSelect = [
23 23
         'main'      => [],
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 
38 38
     /**
39 39
      *
40
-    * <code>
41
-    *   $qb = $this->select('u.id, p.id')
42
-    *           ->where('phonenumbers=?', [$number]);
43
-    * </code>
44
-    * @param string $fields
45
-    * @param array $paramns
46
-    * @return $this
40
+     * <code>
41
+     *   $qb = $this->select('u.id, p.id')
42
+     *           ->where('phonenumbers=?', [$number]);
43
+     * </code>
44
+     * @param string $fields
45
+     * @param array $paramns
46
+     * @return $this
47 47
      */
48 48
     protected function select(string $fields = "*", array $paramns = []): CrudBuilder
49 49
     {
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-    * @param string $fields
63
-    * @param array $paramns
64
-    * @return $this
62
+     * @param string $fields
63
+     * @param array $paramns
64
+     * @return $this
65 65
      */
66 66
     protected function insert(string $fields, array $paramns): self
67 67
     {
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-    * @param string $fields
84
-    * @param array $paramns
85
-    * @return $this
83
+     * @param string $fields
84
+     * @param array $paramns
85
+     * @return $this
86 86
      */
87 87
     protected function update(string $fields, array $paramns): self
88 88
     {
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-    * @param string $fields
107
-    * @param array $paramns
108
-    * @return $this
106
+     * @param string $fields
107
+     * @param array $paramns
108
+     * @return $this
109 109
      */
110 110
     protected function delete(): self
111 111
     {
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
     }
120 120
 
121 121
     /**
122
-    * @param string $query
123
-    * @param array $paramns
124
-    * @return $this
122
+     * @param string $query
123
+     * @param array $paramns
124
+     * @return $this
125 125
      */
126 126
     protected function query(string $query, array $paramns = []): self
127 127
     {
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
     }
135 135
 
136 136
     /**
137
-    * @param string $texto
138
-    * @param array $paramns
139
-    * @return $this
137
+     * @param string $texto
138
+     * @param array $paramns
139
+     * @return $this
140 140
      */
141 141
     protected function where(string $texto, array $paramns = []): self
142 142
     {
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
     }
151 151
 
152 152
     /**
153
-    * @param string $condition
154
-    * @param array $paramns
155
-    * @return $this
153
+     * @param string $condition
154
+     * @param array $paramns
155
+     * @return $this
156 156
      */
157 157
     protected function andWhere(string $condition, array $paramns = []): self
158 158
     {
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
     }
167 167
 
168 168
     /**
169
-    * @param string $condition
170
-    * @param array $paramns
171
-    * @return $this
169
+     * @param string $condition
170
+     * @param array $paramns
171
+     * @return $this
172 172
      */
173 173
     protected function orWhere(string $condition, array $paramns = []): self
174 174
     {
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
     }
183 183
 
184 184
     /**
185
-    * @param string $parameter
186
-    * @return $this
185
+     * @param string $parameter
186
+     * @return $this
187 187
      */
188 188
     protected function orderBy(string $parameter, $order = null): self
189 189
     {
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
     }
209 209
 
210 210
     /**
211
-    * @param string $texto
212
-    * @return $this
211
+     * @param string $texto
212
+     * @return $this
213 213
      */
214 214
     protected function limit(string $texto): self
215 215
     {
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
     }
220 220
 
221 221
     /**
222
-    * @param string $texto
223
-    * @return $this
222
+     * @param string $texto
223
+     * @return $this
224 224
      */
225 225
     protected function offset(string $texto): self
226 226
     {
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
     }
235 235
 
236 236
     /**
237
-    * @param string $texto
238
-    * @return $this
237
+     * @param string $texto
238
+     * @return $this
239 239
      */
240 240
     protected function groupBy(string $texto): self
241 241
     {
@@ -249,8 +249,8 @@  discard block
 block discarded – undo
249 249
     }
250 250
 
251 251
     /**
252
-    * @param string $texto
253
-    * @return $this
252
+     * @param string $texto
253
+     * @return $this
254 254
      */
255 255
     protected function having(string $texto): self
256 256
     {
@@ -294,10 +294,10 @@  discard block
 block discarded – undo
294 294
     }
295 295
 
296 296
     /**
297
-    * @param string $table
298
-    * @param string $alias
299
-    * @param string $codition
300
-    * @return $this
297
+     * @param string $table
298
+     * @param string $alias
299
+     * @param string $codition
300
+     * @return $this
301 301
      */
302 302
     protected function innerJoin(string $table, string $alias, string $codition): self
303 303
     {
@@ -311,10 +311,10 @@  discard block
 block discarded – undo
311 311
     }
312 312
 
313 313
     /**
314
-    * @param string $table
315
-    * @param string $alias
316
-    * @param string $codition
317
-    * @return $this
314
+     * @param string $table
315
+     * @param string $alias
316
+     * @param string $codition
317
+     * @return $this
318 318
      */
319 319
     protected function leftJoin(string $table, string $alias, string $codition): self
320 320
     {
@@ -328,10 +328,10 @@  discard block
 block discarded – undo
328 328
     }
329 329
 
330 330
     /**
331
-    * @param string $table
332
-    * @param string $alias
333
-    * @param string $codition
334
-    * @return $this
331
+     * @param string $table
332
+     * @param string $alias
333
+     * @param string $codition
334
+     * @return $this
335 335
      */
336 336
     protected function rightJoin(string $table, string $alias, string $codition): self
337 337
     {
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     }
370 370
 
371 371
     /**
372
-    * @return void
372
+     * @return void
373 373
      */
374 374
     protected function debug()
375 375
     {
@@ -406,8 +406,8 @@  discard block
 block discarded – undo
406 406
     }
407 407
 
408 408
     /**
409
-    * @param $params
410
-    * @return self
409
+     * @param $params
410
+     * @return self
411 411
      */
412 412
     protected function setParameter($params): self
413 413
     {
@@ -416,10 +416,10 @@  discard block
 block discarded – undo
416 416
     }
417 417
 
418 418
     /**
419
-    * @param string $query
420
-    * @param string $type
421
-    * @param array $params
422
-    * @return void
419
+     * @param string $query
420
+     * @param string $type
421
+     * @param array $params
422
+     * @return void
423 423
      */
424 424
     private function add(string $query, string $type, array $params = []): void
425 425
     {
Please login to merge, or discard this patch.