Passed
Branch main (d64da0)
by William
10:22
created
example/example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
  *
85 85
  * Select * from (select * from users) as sub
86 86
  */
87
-$dados = DB::fromSub(function (Query $query) {
87
+$dados = DB::fromSub(function(Query $query) {
88 88
     return $query->from("users")->limit(10);
89 89
 }, 'sub')->get();
90 90
 var_dump($dados);
Please login to merge, or discard this patch.
src/Query.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -557,7 +557,7 @@
 block discarded – undo
557 557
         return $result;
558 558
     }
559 559
 
560
-    public function bind(PDOStatement &$stmt)
560
+    public function bind(PDOStatement & $stmt)
561 561
     {
562 562
         $binds = $this->filter($this->finalParams());
563 563
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -529,7 +529,9 @@
 block discarded – undo
529 529
 
530 530
         $queryString = "";
531 531
 
532
-        if (empty($queryParams["filters"])) return "";
532
+        if (empty($queryParams["filters"])) {
533
+            return "";
534
+        }
533 535
 
534 536
         foreach ($queryParams["filters"] as $key => $filtro) {
535 537
             if ($key === 0) {
Please login to merge, or discard this patch.