Completed
Push — master ( 9efca8...12b9f9 )
by Владислав
06:12 queued 04:03
created
src/core/DeCaptchaAbstract.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@  discard block
 block discarded – undo
96 96
         }
97 97
         $decodeSetting = $this->decodeSettings[static::DECODE_ACTION][$action];
98 98
         $decodeFormat = array_key_exists(static::DECODE_FORMAT, $decodeSetting) ?
99
-            $decodeSetting[static::DECODE_FORMAT] :
100
-            $this->decodeSettings[static::DECODE_FORMAT];
99
+            $decodeSetting[static::DECODE_FORMAT] : $this->decodeSettings[static::DECODE_FORMAT];
101 100
         $values = [];
102 101
         switch ($decodeFormat) {
103 102
             case static::RESPONSE_TYPE_STRING:
@@ -158,7 +157,7 @@  discard block
 block discarded – undo
158 157
      */
159 158
     protected function getActionUrl($action)
160 159
     {
161
-        return $this->getBaseUrl().$this->actions[$action][static::ACTION_URI];
160
+        return $this->getBaseUrl() . $this->actions[$action][static::ACTION_URI];
162 161
     }
163 162
 
164 163
     /**
@@ -201,7 +200,7 @@  discard block
 block discarded – undo
201 200
         }
202 201
         switch ($param) {
203 202
             case static::PARAM_SPEC_FILE:
204
-                return (version_compare(PHP_VERSION, '5.5.0') >= 0) ? new \CURLFile($this->params[$param]) : '@'.$this->params[$param];
203
+                return (version_compare(PHP_VERSION, '5.5.0') >= 0) ? new \CURLFile($this->params[$param]) : '@' . $this->params[$param];
205 204
             case static::PARAM_SPEC_KEY:
206 205
                 return is_callable($this->params[$param]) ? $this->params[$param]() : $this->params[$param];
207 206
             case static::PARAM_SPEC_CAPTCHA:
@@ -301,7 +300,7 @@  discard block
 block discarded – undo
301 300
             foreach ($data as $key => $value) {
302 301
                 $uri[] = "$key=$value";
303 302
             }
304
-            $url .= '?'.implode('&', $uri);
303
+            $url .= '?' . implode('&', $uri);
305 304
         }
306 305
         curl_setopt($ch, CURLOPT_URL, $url);
307 306
         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.