@@ -36,7 +36,7 @@ |
||
| 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 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -67,8 +67,8 @@ |
||
| 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 | { |