@@ -245,8 +245,8 @@ discard block |
||
245 | 245 | foreach (['meta', 'data', 'totals', 'extremes', 'rows', 'rows_before_limit_at_least', 'statistics'] as $key) { |
246 | 246 | |
247 | 247 | if (isset($this->_rawData[$key])) { |
248 | - if ($key=='data') { |
|
249 | - $data=$this->_rawData[$key]; |
|
248 | + if ($key == 'data') { |
|
249 | + $data = $this->_rawData[$key]; |
|
250 | 250 | } else { |
251 | 251 | $this->{$key} = $this->_rawData[$key]; |
252 | 252 | } |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | throw new QueryException('Can`t find meta'); |
258 | 258 | } |
259 | 259 | |
260 | - $isJSONCompact=(stripos($this->format,'JSONCompact')!==false?true:false); |
|
260 | + $isJSONCompact = (stripos($this->format, 'JSONCompact') !== false ?true:false); |
|
261 | 261 | $this->array_data = []; |
262 | 262 | foreach ($data as $rows) { |
263 | 263 | $r = []; |
@@ -419,14 +419,14 @@ discard block |
||
419 | 419 | */ |
420 | 420 | public function resetIterator() |
421 | 421 | { |
422 | - $this->iterator=0; |
|
422 | + $this->iterator = 0; |
|
423 | 423 | } |
424 | 424 | |
425 | 425 | public function fetchRow($key = null) |
426 | 426 | { |
427 | 427 | $this->init(); |
428 | 428 | |
429 | - $position=$this->iterator; |
|
429 | + $position = $this->iterator; |
|
430 | 430 | |
431 | 431 | if (!isset($this->array_data[$position])) { |
432 | 432 | return null; |
@@ -379,7 +379,9 @@ |
||
379 | 379 | return null; |
380 | 380 | } |
381 | 381 | |
382 | - if (!$key) return $this->statistics; |
|
382 | + if (!$key) { |
|
383 | + return $this->statistics; |
|
384 | + } |
|
383 | 385 | |
384 | 386 | if (!isset($this->statistics[$key])) { |
385 | 387 | return null; |