@@ -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 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function offsetSet($offset, $value) |
194 | 194 | { |
195 | - if(is_array($value)) { |
|
195 | + if (is_array($value)) { |
|
196 | 196 | parent::offsetSet($offset, new Row($value)); |
197 | 197 | } else { |
198 | 198 | parent::offsetSet($offset, $value); |