@@ -92,8 +92,7 @@ discard block |
||
| 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 |
||
| 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,13 +197,13 @@ discard block |
||
| 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->params[$param]) : '@'.$this->params[$param]; |
|
| 200 | + return (version_compare(PHP_VERSION, '5.5.0') >= 0) ? new \CURLFile($this->params[$param]) : '@' . $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: |
| 205 | - return (int)$this->params[$param]; |
|
| 204 | + return (int) $this->params[$param]; |
|
| 206 | 205 | case static::PARAM_SPEC_CODE: |
| 207 | - return (string)$this->params[$param]; |
|
| 206 | + return (string) $this->params[$param]; |
|
| 208 | 207 | } |
| 209 | 208 | |
| 210 | 209 | return null; |
@@ -305,7 +304,7 @@ discard block |
||
| 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')) { |