Passed
Push — master ( 3b543f...d6def4 )
by RN
01:47
created
src/Dolphin/Save.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,16 +23,16 @@
 block discarded – undo
23 23
     }
24 24
 
25 25
     public function buildQueryStrSingleFromArr($row = array()){
26
-      $ar = [];
27
-      $query = "UPDATE ".$this->table." SET ";
28
-      foreach($row as $key => $val){
29
-          $ar[':'.$key] = $val;
30
-          if($key == 'id') continue;
31
-          $query.= $this->qb->quote($key)." =:".$key.",";
32
-      }
33
-      $query = rtrim($query, ",");
26
+        $ar = [];
27
+        $query = "UPDATE ".$this->table." SET ";
28
+        foreach($row as $key => $val){
29
+            $ar[':'.$key] = $val;
30
+            if($key == 'id') continue;
31
+            $query.= $this->qb->quote($key)." =:".$key.",";
32
+        }
33
+        $query = rtrim($query, ",");
34 34
 
35
-      return ['ar' => $ar, 'query' => $query];
35
+        return ['ar' => $ar, 'query' => $query];
36 36
     }
37 37
     public function createQuery($row){
38 38
         $ar = [];
Please login to merge, or discard this patch.