@@ -14,6 +14,6 @@ |
||
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); |
@@ -2,6 +2,6 @@ |
||
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); |
@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -20,7 +20,7 @@ |
||
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 | } |
@@ -12,7 +12,7 @@ discard block |
||
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 |
||
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 | } |