Passed
Pull Request — master (#224)
by
unknown
06:43
created
src/Statement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
         try {
161 161
             json_decode($body, true, 512, JSON_THROW_ON_ERROR);
162
-        } catch (\JsonException $e) {
162
+        }catch (\JsonException $e) {
163 163
             return true;
164 164
         }
165 165
 
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
         foreach (['meta', 'data', 'totals', 'extremes', 'rows', 'rows_before_limit_at_least', 'statistics'] as $key) {
275 275
 
276 276
             if (isset($this->_rawData[$key])) {
277
-                if ($key=='data') {
278
-                    $data=$this->_rawData[$key];
277
+                if ($key == 'data') {
278
+                    $data = $this->_rawData[$key];
279 279
                 } else {
280 280
                     $this->{$key} = $this->_rawData[$key];
281 281
                 }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             throw new QueryException('Can`t find meta');
287 287
         }
288 288
 
289
-        $isJSONCompact=(stripos($this->format,'JSONCompact')!==false?true:false);
289
+        $isJSONCompact = (stripos($this->format, 'JSONCompact') !== false ?true:false);
290 290
         $this->array_data = [];
291 291
         foreach ($data as $rows) {
292 292
             $r = [];
@@ -440,14 +440,14 @@  discard block
 block discarded – undo
440 440
      */
441 441
     public function resetIterator()
442 442
     {
443
-        $this->iterator=0;
443
+        $this->iterator = 0;
444 444
     }
445 445
 
446 446
     public function fetchRow($key = null)
447 447
     {
448 448
         $this->init();
449 449
 
450
-        $position=$this->iterator;
450
+        $position = $this->iterator;
451 451
 
452 452
         if (!isset($this->array_data[$position])) {
453 453
             return null;
Please login to merge, or discard this patch.