@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | public function affected() : int |
| 26 | 26 | { |
| 27 | - return (int)\oci_num_rows($this->statement); |
|
| 27 | + return (int) \oci_num_rows($this->statement); |
|
| 28 | 28 | } |
| 29 | 29 | public function insertID(string $sequence = null): mixed |
| 30 | 30 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function count(): int |
| 39 | 39 | { |
| 40 | - return (int)\oci_num_rows($this->statement); |
|
| 40 | + return (int) \oci_num_rows($this->statement); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | public function key(): mixed |
@@ -65,8 +65,8 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | public function next(): void |
| 67 | 67 | { |
| 68 | - $this->fetched ++; |
|
| 69 | - $this->last = \oci_fetch_array($this->statement, \OCI_ASSOC + \OCI_RETURN_NULLS + \OCI_RETURN_LOBS)?:null; |
|
| 68 | + $this->fetched++; |
|
| 69 | + $this->last = \oci_fetch_array($this->statement, \OCI_ASSOC +\OCI_RETURN_NULLS +\OCI_RETURN_LOBS) ?: null; |
|
| 70 | 70 | $this->cast(); |
| 71 | 71 | } |
| 72 | 72 | public function valid(): bool |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | $this->types[$v] = \oci_field_type($this->statement, $k + 1); |
| 81 | 81 | if ($this->types[$v] === 'NUMBER') { |
| 82 | 82 | $size = \oci_field_size($this->statement, $k + 1); |
| 83 | - if ((int)(explode(',', $size, 2)[1] ?? '') > 0) { |
|
| 83 | + if ((int) (explode(',', $size, 2)[1] ?? '') > 0) { |
|
| 84 | 84 | $this->types[$v] === 'FLOAT'; |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -92,10 +92,10 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | switch ($this->types[$k]) { |
| 94 | 94 | case 'NUMBER': |
| 95 | - $this->last[$k] = (int)$v; |
|
| 95 | + $this->last[$k] = (int) $v; |
|
| 96 | 96 | break; |
| 97 | 97 | case 'FLOAT': |
| 98 | - $this->last[$k] = (float)$v; |
|
| 98 | + $this->last[$k] = (float) $v; |
|
| 99 | 99 | break; |
| 100 | 100 | } |
| 101 | 101 | } |