Completed
Push — master ( 2476f1...d9618e )
by Владислав
04:11 queued 02:06
created
src/core/DeCaptchaAbstract.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@  discard block
 block discarded – undo
92 92
         }
93 93
         $decodeSetting = $this->decodeSettings[static::DECODE_ACTION][$action];
94 94
         $decodeFormat = array_key_exists(static::DECODE_FORMAT, $decodeSetting) ?
95
-            $decodeSetting[static::DECODE_FORMAT] :
96
-            $this->decodeSettings[static::DECODE_FORMAT];
95
+            $decodeSetting[static::DECODE_FORMAT] : $this->decodeSettings[static::DECODE_FORMAT];
97 96
         $values = [];
98 97
         switch ($decodeFormat) {
99 98
             case static::RESPONSE_TYPE_STRING:
@@ -154,7 +153,7 @@  discard block
 block discarded – undo
154 153
      */
155 154
     protected function getActionUrl($action)
156 155
     {
157
-        return $this->getBaseUrl().$this->actions[$action][static::ACTION_URI];
156
+        return $this->getBaseUrl() . $this->actions[$action][static::ACTION_URI];
158 157
     }
159 158
 
160 159
     /**
@@ -198,7 +197,7 @@  discard block
 block discarded – undo
198 197
         }
199 198
         switch ($param) {
200 199
             case static::PARAM_SPEC_FILE:
201
-                return (version_compare(PHP_VERSION, '5.5.0') >= 0) ? new \CURLFile($this->getFilePath($this->params[$param])) : '@'.$this->getFilePath($this->params[$param]);
200
+                return (version_compare(PHP_VERSION, '5.5.0') >= 0) ? new \CURLFile($this->getFilePath($this->params[$param])) : '@' . $this->getFilePath($this->params[$param]);
202 201
             case static::PARAM_SPEC_API_KEY:
203 202
                 return is_callable($this->params[$param]) ? $this->params[$param]() : $this->params[$param];
204 203
             case static::PARAM_SPEC_CAPTCHA:
@@ -305,7 +304,7 @@  discard block
 block discarded – undo
305 304
             foreach ($data as $key => $value) {
306 305
                 $uri[] = "$key=$value";
307 306
             }
308
-            $url .= '?'.implode('&', $uri);
307
+            $url .= '?' . implode('&', $uri);
309 308
         }
310 309
         curl_setopt($ch, CURLOPT_URL, $url);
311 310
         if (version_compare(PHP_VERSION, '5.5.0') >= 0 && version_compare(PHP_VERSION, '7.0') < 0 && defined('CURLOPT_SAFE_UPLOAD')) {
Please login to merge, or discard this patch.