@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * @var int |
85 | 85 | */ |
86 | - public $iterator=0; |
|
86 | + public $iterator = 0; |
|
87 | 87 | |
88 | 88 | |
89 | 89 | public function __construct(CurlerRequest $request) |
@@ -221,15 +221,15 @@ discard block |
||
221 | 221 | $this->_init = true; |
222 | 222 | return false; |
223 | 223 | } |
224 | - $data=[]; |
|
224 | + $data = []; |
|
225 | 225 | foreach (['meta', 'data', 'totals', 'extremes', 'rows', 'rows_before_limit_at_least', 'statistics'] as $key) { |
226 | 226 | |
227 | 227 | if (isset($this->_rawData[$key])) { |
228 | - if ($key=='data') |
|
228 | + if ($key == 'data') |
|
229 | 229 | { |
230 | - $data=$this->_rawData[$key]; |
|
230 | + $data = $this->_rawData[$key]; |
|
231 | 231 | } |
232 | - else{ |
|
232 | + else { |
|
233 | 233 | $this->{$key} = $this->_rawData[$key]; |
234 | 234 | } |
235 | 235 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | throw new QueryException('Can`t find meta'); |
241 | 241 | } |
242 | 242 | |
243 | - $isJSONCompact=(stripos($this->format,'JSONCompact')!==false?true:false); |
|
243 | + $isJSONCompact = (stripos($this->format, 'JSONCompact') !== false ?true:false); |
|
244 | 244 | $this->array_data = []; |
245 | 245 | foreach ($data as $rows) { |
246 | 246 | $r = []; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | |
249 | 249 | if ($isJSONCompact) |
250 | 250 | { |
251 | - $r[]=$rows; |
|
251 | + $r[] = $rows; |
|
252 | 252 | } |
253 | 253 | else { |
254 | 254 | foreach ($this->meta as $meta) { |
@@ -402,14 +402,14 @@ discard block |
||
402 | 402 | */ |
403 | 403 | public function resetIterator() |
404 | 404 | { |
405 | - $this->iterator=0; |
|
405 | + $this->iterator = 0; |
|
406 | 406 | } |
407 | 407 | |
408 | 408 | public function fetchRow($key = null) |
409 | 409 | { |
410 | 410 | $this->init(); |
411 | 411 | |
412 | - $position=$this->iterator; |
|
412 | + $position = $this->iterator; |
|
413 | 413 | if (isset($this->array_data[$position])) { |
414 | 414 | $this->iterator++; |
415 | 415 | if ($key) { |