Completed
Push — master ( c0f688...48843d )
by Dmitry
08:39
created
src/Client.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getCaptchaResultBulk(array $captchaIds)
65 65
     {
66
-        $request = new Request('GET', '/res.php?' . http_build_query([
66
+        $request = new Request('GET', '/res.php?'.http_build_query([
67 67
             'key' => $this->apiKey,
68 68
             'action' => 'get',
69 69
             'ids' => implode(',', $captchaIds)
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
             'pageurl' => $pageUrl
352 352
         ]);
353 353
 
354
-        $request = new Request('POST', "/in.php?" . http_build_query($params));
354
+        $request = new Request('POST', "/in.php?".http_build_query($params));
355 355
 
356 356
         $response = $this
357 357
             ->getHttpClient()
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
                 continue;
403 403
             }
404 404
 
405
-            $this->getLogger()->info("Elapsed " . (time()-$startTime) . " second(s).");
405
+            $this->getLogger()->info("Elapsed ".(time() - $startTime)." second(s).");
406 406
 
407 407
             return $result;
408 408
         }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
             $extra[Extra::SOFT_ID] = $this->softId;
433 433
         }
434 434
 
435
-        $request = new Request('POST', "/in.php?". http_build_query(array_merge($extra, [
435
+        $request = new Request('POST', "/in.php?".http_build_query(array_merge($extra, [
436 436
             'method' => 'userrecaptcha',
437 437
             'version' => 'v3',
438 438
             'key' => $this->apiKey,
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
                 continue;
492 492
             }
493 493
 
494
-            $this->getLogger()->info("Elapsed " . (time()-$startTime) . " second(s).");
494
+            $this->getLogger()->info("Elapsed ".(time() - $startTime)." second(s).");
495 495
 
496 496
             return $result;
497 497
         }
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
             $extra[Extra::SOFT_ID] = $this->softId;
527 527
         }
528 528
 
529
-        $request = new Request('POST', "/in.php?" . http_build_query(array_merge($extra, [
529
+        $request = new Request('POST', "/in.php?".http_build_query(array_merge($extra, [
530 530
             'method' => 'keycaptcha',
531 531
             'key' => $this->apiKey,
532 532
             's_s_c_user_id' => $SSCUserId,
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
                 continue;
595 595
             }
596 596
 
597
-            $this->getLogger()->info("Elapsed " . (time()-$startTime) . " second(s).");
597
+            $this->getLogger()->info("Elapsed ".(time() - $startTime)." second(s).");
598 598
 
599 599
             return $result;
600 600
         }
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 
622 622
         if (JSON_ERROR_NONE !== json_last_error()) {
623 623
             throw new InvalidArgumentException(
624
-                'json_decode error: ' . json_last_error_msg()
624
+                'json_decode error: '.json_last_error_msg()
625 625
             );
626 626
         }
627 627
 
Please login to merge, or discard this patch.