Passed
Push — master ( f721f3...48f8d7 )
by Igor
16:15 queued 06:15
created
src/Transport/Http.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         }
261 261
 
262 262
         $new->timeOut($this->settings()->getTimeOut());
263
-        $new->connectTimeOut($this->_connectTimeOut);//->keepAlive(); // one sec
263
+        $new->connectTimeOut($this->_connectTimeOut); //->keepAlive(); // one sec
264 264
         $new->verbose(boolval($this->_verbose));
265 265
 
266 266
         return $new;
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
         $request->url($url);
373 373
 
374
-        $request->setCallbackFunction(function (CurlerRequest $request) {
374
+        $request->setCallbackFunction(function(CurlerRequest $request) {
375 375
             $handle = $request->getInfileHandle();
376 376
             if (is_resource($handle)) {
377 377
                 fclose($handle);
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
                 }
511 511
 
512 512
 
513
-                $request->setResultFileHandle($fout, $isGz)->setCallbackFunction(function (CurlerRequest $request) {
513
+                $request->setResultFileHandle($fout, $isGz)->setCallbackFunction(function(CurlerRequest $request) {
514 514
                     fclose($request->getResultFileHandle());
515 515
                 });
516 516
             }
@@ -697,11 +697,11 @@  discard block
 block discarded – undo
697 697
             if (!is_callable($callable)) {
698 698
                 if ($streamRW->isWrite()) {
699 699
 
700
-                    $callable = function ($ch, $fd, $length) use ($stream) {
700
+                    $callable = function($ch, $fd, $length) use ($stream) {
701 701
                         return ($line = fread($stream, $length)) ? $line : '';
702 702
                     };
703 703
                 } else {
704
-                    $callable = function ($ch, $fd) use ($stream) {
704
+                    $callable = function($ch, $fd) use ($stream) {
705 705
                         return fwrite($stream, $fd);
706 706
                     };
707 707
                 }
Please login to merge, or discard this patch.
src/Transport/CurlerRolling.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
 
291 291
 
292 292
             if (is_object($done['handle'])) {
293
-                $key = spl_object_id( $done['handle'] );
293
+                $key = spl_object_id($done['handle']);
294 294
             } else {
295
-                $key = (string) $done['handle'] ;
295
+                $key = (string) $done['handle'];
296 296
             }
297 297
 
298 298
             $task_id = $this->handleMapTasks[$key];
@@ -374,9 +374,9 @@  discard block
 block discarded – undo
374 374
         curl_multi_add_handle($this->handlerMulti(), $h);
375 375
 
376 376
         if (is_object($h)) {
377
-            $key = spl_object_id( $h );
377
+            $key = spl_object_id($h);
378 378
         } else {
379
-            $key = (string) $h ;
379
+            $key = (string) $h;
380 380
         }
381 381
 
382 382
         $this->handleMapTasks[$key] = $task_id;
Please login to merge, or discard this patch.
src/Transport/CurlerRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -719,7 +719,7 @@
 block discarded – undo
719 719
                 $curl_opt[CURLOPT_POSTFIELDS] = $this->parameters;
720 720
 
721 721
                 if (!is_array($this->parameters)) {
722
-                    $this->header('Content-Length',  mb_strlen($this->parameters, '8bit'));
722
+                    $this->header('Content-Length', mb_strlen($this->parameters, '8bit'));
723 723
                 }
724 724
             }
725 725
         }
Please login to merge, or discard this patch.
src/Statement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.