Completed
Branch master (b71ad6)
by Ivan
03:07
created
src/QueryResult.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $this->rsl = $this->drv->execute($this->prp, $this->dat);
37 37
         $this->num = (is_object($this->rsl) || is_resource($this->rsl)) && $this->drv->countable() ?
38
-            (int) @$this->drv->count($this->rsl) :
39
-            0;
38
+            (int) @$this->drv->count($this->rsl) : 0;
40 39
         $this->aff = $this->drv->affected();
41 40
         try {
42 41
             $this->iid = $this->drv->insertId();
Please login to merge, or discard this patch.
src/TableQueryIterator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
                 $fields = [];
63 63
                 $exists = false;
64 64
                 foreach ($relation->table->getColumns() as $column) {
65
-                    $fields[$column] = $row[$name . '___' . $column];
66
-                    if (!$exists && $row[$name . '___' . $column] !== null) {
65
+                    $fields[$column] = $row[$name.'___'.$column];
66
+                    if (!$exists && $row[$name.'___'.$column] !== null) {
67 67
                         $exists = true;
68 68
                     }
69
-                    unset($result[$name . '___' . $column]);
69
+                    unset($result[$name.'___'.$column]);
70 70
                 }
71 71
                 if ($exists) {
72 72
                     if ($relation->many) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 return;
114 114
             }
115 115
         }
116
-        $this->fetched ++;
116
+        $this->fetched++;
117 117
         while ($this->result->valid()) {
118 118
             $row = $this->result->current();
119 119
             $pk = [];
Please login to merge, or discard this patch.