@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | public function limit(string $texto): self |
202 | 202 | { |
203 | 203 | $query = "LIMIT {$texto} "; |
204 | - $this->add($query,"limit"); |
|
204 | + $this->add($query, "limit"); |
|
205 | 205 | return $this; |
206 | 206 | } |
207 | 207 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | { |
214 | 214 | try { |
215 | 215 | $query = "OFFSET {$texto} "; |
216 | - $this->add($query,"offset"); |
|
216 | + $this->add($query, "offset"); |
|
217 | 217 | return $this; |
218 | 218 | } catch (\PDOException $e) { |
219 | 219 | $this->setError($e); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | { |
229 | 229 | try { |
230 | 230 | $query = "GROUP BY {$texto} "; |
231 | - $this->add($query,"groupBy"); |
|
231 | + $this->add($query, "groupBy"); |
|
232 | 232 | return $this; |
233 | 233 | } catch (\PDOException $e) { |
234 | 234 | $this->setError($e); |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | { |
244 | 244 | try { |
245 | 245 | $query = "HAVING {$texto} "; |
246 | - $this->add($query,"having"); |
|
246 | + $this->add($query, "having"); |
|
247 | 247 | return $this; |
248 | 248 | } catch (\PDOException $e) { |
249 | 249 | $this->setError($e); |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | { |
259 | 259 | try { |
260 | 260 | $query = "AND {$texto} "; |
261 | - $this->add($query,"andHaving"); |
|
261 | + $this->add($query, "andHaving"); |
|
262 | 262 | return $this; |
263 | 263 | } catch (\PDOException $e) { |
264 | 264 | $this->setError($e); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | { |
274 | 274 | try { |
275 | 275 | $query = "OR {$codition} "; |
276 | - $this->add($query,"orHaving"); |
|
276 | + $this->add($query, "orHaving"); |
|
277 | 277 | return $this; |
278 | 278 | } catch (\PDOException $e) { |
279 | 279 | $this->setError($e); |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | { |
291 | 291 | try { |
292 | 292 | $query = "INNER JOIN {$table} AS {$alias} ON $codition "; |
293 | - $this->add($query,"join"); |
|
293 | + $this->add($query, "join"); |
|
294 | 294 | return $this; |
295 | 295 | } catch (\PDOException $e) { |
296 | 296 | $this->setError($e); |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | { |
308 | 308 | try { |
309 | 309 | $query = "LEFT JOIN {$table} AS {$alias} ON $codition "; |
310 | - $this->add($query,"join"); |
|
310 | + $this->add($query, "join"); |
|
311 | 311 | return $this; |
312 | 312 | } catch (\PDOException $e) { |
313 | 313 | $this->setError($e); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | { |
325 | 325 | try { |
326 | 326 | $query = "RIGHT JOIN {$table} AS {$alias} ON $codition "; |
327 | - $this->add($query,"join"); |
|
327 | + $this->add($query, "join"); |
|
328 | 328 | return $this; |
329 | 329 | } catch (\PDOException $e) { |
330 | 330 | $this->setError($e); |
@@ -337,9 +337,9 @@ discard block |
||
337 | 337 | public function executeQuery(): self |
338 | 338 | { |
339 | 339 | try { |
340 | - foreach ($this->sqlPartsSelect as $key => $part){ |
|
340 | + foreach ($this->sqlPartsSelect as $key => $part) { |
|
341 | 341 | if (is_array($part)) { |
342 | - foreach ($part as $item){ |
|
342 | + foreach ($part as $item) { |
|
343 | 343 | $this->query .= $item; |
344 | 344 | } |
345 | 345 | } else { |