@@ -215,15 +215,15 @@ discard block |
||
215 | 215 | $this->_init = true; |
216 | 216 | return false; |
217 | 217 | } |
218 | - $data=[]; |
|
218 | + $data = []; |
|
219 | 219 | foreach (['meta', 'data', 'totals', 'extremes', 'rows', 'rows_before_limit_at_least', 'statistics'] as $key) { |
220 | 220 | |
221 | 221 | if (isset($this->_rawData[$key])) { |
222 | - if ($key=='data') |
|
222 | + if ($key == 'data') |
|
223 | 223 | { |
224 | - $data=$this->_rawData[$key]; |
|
224 | + $data = $this->_rawData[$key]; |
|
225 | 225 | } |
226 | - else{ |
|
226 | + else { |
|
227 | 227 | $this->{$key} = $this->_rawData[$key]; |
228 | 228 | } |
229 | 229 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | throw new QueryException('Can`t find meta'); |
235 | 235 | } |
236 | 236 | |
237 | - $isJSONCompact=(stripos($this->format,'JSONCompact')!==false?true:false); |
|
237 | + $isJSONCompact = (stripos($this->format, 'JSONCompact') !== false ?true:false); |
|
238 | 238 | $this->array_data = []; |
239 | 239 | foreach ($data as $rows) { |
240 | 240 | $r = []; |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | |
243 | 243 | if ($isJSONCompact) |
244 | 244 | { |
245 | - $r[]=$rows; |
|
245 | + $r[] = $rows; |
|
246 | 246 | } |
247 | 247 | else { |
248 | 248 | foreach ($this->meta as $meta) { |
@@ -353,15 +353,15 @@ discard block |
||
353 | 353 | { |
354 | 354 | $this->init(); |
355 | 355 | |
356 | - if (! $key) { |
|
356 | + if (!$key) { |
|
357 | 357 | return $this->statistics; |
358 | 358 | } |
359 | 359 | |
360 | - if (! \is_array($this->statistics)) { |
|
360 | + if (!\is_array($this->statistics)) { |
|
361 | 361 | return null; |
362 | 362 | } |
363 | 363 | |
364 | - if (! isset($this->statistics[$key])) { |
|
364 | + if (!isset($this->statistics[$key])) { |
|
365 | 365 | return null; |
366 | 366 | } |
367 | 367 | |
@@ -402,11 +402,11 @@ discard block |
||
402 | 402 | { |
403 | 403 | $this->init(); |
404 | 404 | |
405 | - if (! isset($this->array_data[0])) { |
|
405 | + if (!isset($this->array_data[0])) { |
|
406 | 406 | return null; |
407 | 407 | } |
408 | 408 | |
409 | - if (! $key) { |
|
409 | + if (!$key) { |
|
410 | 410 | return $this->array_data[0]; |
411 | 411 | } |
412 | 412 |