Completed
Push — master ( 367f78...d6b668 )
by Ivan
13:18
created
src/driver/db2/Statement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         if (isset($this->map)) {
37 37
             $par = [];
38 38
             foreach ($this->map as $key) {
39
-                $par[] = $data[$key] ?? throw new DBException('Missing param ' . $key);
39
+                $par[] = $data[$key] ?? throw new DBException('Missing param '.$key);
40 40
             }
41 41
             $data = $par;
42 42
         }
Please login to merge, or discard this patch.
src/driver/db2/Driver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         if ($this->transaction) {
90 90
             return false;
91 91
         }
92
-        \db2_set_option($this->lnk, ['autocommit' => \DB2_AUTOCOMMIT_OFF ], 1);
92
+        \db2_set_option($this->lnk, ['autocommit' => \DB2_AUTOCOMMIT_OFF], 1);
93 93
         $this->transaction = true;
94 94
         return true;
95 95
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         if (!\db2_commit($this->lnk)) {
106 106
             return false;
107 107
         }
108
-        \db2_set_option($this->lnk, ['autocommit' => \DB2_AUTOCOMMIT_ON ], 1);
108
+        \db2_set_option($this->lnk, ['autocommit' => \DB2_AUTOCOMMIT_ON], 1);
109 109
         $this->transaction = false;
110 110
 
111 111
         return true;
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         if (!\db2_rollback($this->transaction)) {
123 123
             return false;
124 124
         }
125
-        \db2_set_option($this->lnk, ['autocommit' => \DB2_AUTOCOMMIT_ON ], 1);
125
+        \db2_set_option($this->lnk, ['autocommit' => \DB2_AUTOCOMMIT_ON], 1);
126 126
         $this->transaction = false;
127 127
 
128 128
         return true;
Please login to merge, or discard this patch.
src/driver/db2/Result.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
     }
68 68
     public function next(): void
69 69
     {
70
-        $this->fetched ++;
71
-        $this->last = \db2_fetch_assoc($this->statement)?:null;
70
+        $this->fetched++;
71
+        $this->last = \db2_fetch_assoc($this->statement) ?: null;
72 72
     }
73 73
     public function valid(): bool
74 74
     {
Please login to merge, or discard this patch.