Completed
Pull Request — master (#6)
by Dmitry
02:51
created
examples/generic_client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 }
15 15
 
16 16
 
17
-$captchaText = (new Anticaptcha(getenv('__ANTICAPTCHA_KEY__')))->recognizeFile(__DIR__ . '/data/captcha.png');
17
+$captchaText = (new Anticaptcha(getenv('__ANTICAPTCHA_KEY__')))->recognizeFile(__DIR__.'/data/captcha.png');
18 18
 
19 19
 var_dump($captchaText);
Please login to merge, or discard this patch.
examples/simple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 require '../vendor/autoload.php';
4 4
 
5
-$captchaText = (new Rucaptcha\Client(getenv('__RUCAPTCHA_KEY__')))->recognizeFile(__DIR__ . '/data/captcha.png');
5
+$captchaText = (new Rucaptcha\Client(getenv('__RUCAPTCHA_KEY__')))->recognizeFile(__DIR__.'/data/captcha.png');
6 6
 
7 7
 var_dump($captchaText);
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function getCaptchaResultBulk(array $captchaIds)
49 49
     {
50
-        $response = $this->getHttpClient()->request('GET', '/res.php?' . http_build_query([
50
+        $response = $this->getHttpClient()->request('GET', '/res.php?'.http_build_query([
51 51
                 'key' => $this->apiKey,
52 52
                 'action' => 'get',
53 53
                 'ids' => join(',', $captchaIds)
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         if ($response->getBody()->__toString() === self::STATUS_OK_REPORT_RECORDED) {
94 94
             return true;
95 95
         }
96
-        throw new RuntimeException('Report sending trouble: ' . $response->getBody() . '.');
96
+        throw new RuntimeException('Report sending trouble: '.$response->getBody().'.');
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.
src/Logger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function log($level, $message, array $context = [])
21 21
     {
22 22
         if ($this->verbose) {
23
-            echo date("d/m/y H:i:s", time()) . ' [' . $level . '] ' . $message . PHP_EOL;
23
+            echo date("d/m/y H:i:s", time()).' ['.$level.'] '.$message.PHP_EOL;
24 24
         }
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/ConfigurableTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public function setOptions(array $options, $ignoreMissingOptions = false)
13 13
     {
14 14
         foreach ($options as $option => $value) {
15
-            $setter = 'set' . ucfirst($option);
15
+            $setter = 'set'.ucfirst($option);
16 16
 
17 17
             if (method_exists($this, $setter)) {
18 18
                 $this->$setter($value);
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             }
26 26
 
27 27
             if (!$ignoreMissingOptions) {
28
-                throw new InvalidArgumentException("Property `{$option}` not found in class `" . __CLASS__ . "`.");
28
+                throw new InvalidArgumentException("Property `{$option}` not found in class `".__CLASS__."`.");
29 29
             }
30 30
         }
31 31
     }
Please login to merge, or discard this patch.