Passed
Pull Request — master (#119)
by Konstantin
05:45 queued 27s
created
src/Statement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -216,15 +216,15 @@  discard block
 block discarded – undo
216 216
             $this->_init = true;
217 217
             return false;
218 218
         }
219
-        $data=[];
219
+        $data = [];
220 220
         foreach (['meta', 'data', 'totals', 'extremes', 'rows', 'rows_before_limit_at_least', 'statistics'] as $key) {
221 221
 
222 222
             if (isset($this->_rawData[$key])) {
223
-                if ($key=='data')
223
+                if ($key == 'data')
224 224
                 {
225
-                    $data=$this->_rawData[$key];
225
+                    $data = $this->_rawData[$key];
226 226
                 }
227
-                else{
227
+                else {
228 228
                     $this->{$key} = $this->_rawData[$key];
229 229
                 }
230 230
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             throw  new QueryException('Can`t find meta');
236 236
         }
237 237
 
238
-        $isJSONCompact=(stripos($this->format,'JSONCompact')!==false?true:false);
238
+        $isJSONCompact = (stripos($this->format, 'JSONCompact') !== false ?true:false);
239 239
         $this->array_data = [];
240 240
         foreach ($data as $rows) {
241 241
             $r = [];
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
             if ($isJSONCompact)
245 245
             {
246
-                $r[]=$rows;
246
+                $r[] = $rows;
247 247
             }
248 248
             else {
249 249
                 foreach ($this->meta as $meta) {
@@ -354,15 +354,15 @@  discard block
 block discarded – undo
354 354
     {
355 355
         $this->init();
356 356
 
357
-        if (! $key) {
357
+        if (!$key) {
358 358
             return $this->statistics;
359 359
         }
360 360
 
361
-        if (! is_array($this->statistics)) {
361
+        if (!is_array($this->statistics)) {
362 362
             return null;
363 363
         }
364 364
 
365
-        if (! isset($this->statistics[$key])) {
365
+        if (!isset($this->statistics[$key])) {
366 366
             return null;
367 367
         }
368 368
 
@@ -403,11 +403,11 @@  discard block
 block discarded – undo
403 403
     {
404 404
         $this->init();
405 405
 
406
-        if (! isset($this->array_data[0])) {
406
+        if (!isset($this->array_data[0])) {
407 407
             return null;
408 408
         }
409 409
 
410
-        if (! $key) {
410
+        if (!$key) {
411 411
             return $this->array_data[0];
412 412
         }
413 413
 
Please login to merge, or discard this patch.