@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | parent::__construct($this->info->num_rows); |
| 51 | 51 | |
| 52 | - foreach($rows as $offset => $row) {
|
|
| 52 | + foreach ($rows as $offset => $row) {
|
|
| 53 | 53 | $this->offsetSet($offset, $row); |
| 54 | 54 | } |
| 55 | 55 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | {
|
| 78 | 78 | $this->info->num_founds = (int)$numFounds; |
| 79 | 79 | |
| 80 | - if($this->info->num_founds > 0 and $this->info->num_per_page > 0) {
|
|
| 80 | + if ($this->info->num_founds > 0 and $this->info->num_per_page > 0) {
|
|
| 81 | 81 | $this->info->num_pages = round($this->info->num_founds / $this->info->num_per_page); |
| 82 | 82 | } |
| 83 | 83 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function first() |
| 107 | 107 | {
|
| 108 | - if($this->count()) {
|
|
| 108 | + if ($this->count()) {
|
|
| 109 | 109 | $this->rewind(); |
| 110 | 110 | |
| 111 | 111 | return $this->current(); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function last() |
| 125 | 125 | {
|
| 126 | - if($this->count()) {
|
|
| 126 | + if ($this->count()) {
|
|
| 127 | 127 | $index = $this->count() - 1; |
| 128 | 128 | |
| 129 | 129 | if ($this->offsetExists($index)) {
|
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | public function offsetSet($offset, $value) |
| 198 | 198 | {
|
| 199 | - if(is_array($value)) {
|
|
| 199 | + if (is_array($value)) {
|
|
| 200 | 200 | parent::offsetSet($offset, new Row($value)); |
| 201 | 201 | } else {
|
| 202 | 202 | parent::offsetSet($offset, $value); |