Passed
Pull Request — master (#8)
by Dmitrii
06:54 queued 04:41
created
src/core/DeCaptchaAbstract.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,8 +122,7 @@  discard block
 block discarded – undo
122 122
         }
123 123
         $decodeSetting = $this->decodeSettings[static::DECODE_ACTION][$action];
124 124
         $decodeFormat = array_key_exists(static::DECODE_FORMAT, $decodeSetting) ?
125
-            $decodeSetting[static::DECODE_FORMAT] :
126
-            $this->decodeSettings[static::DECODE_FORMAT];
125
+            $decodeSetting[static::DECODE_FORMAT] : $this->decodeSettings[static::DECODE_FORMAT];
127 126
         $values = [];
128 127
         switch ($decodeFormat) {
129 128
             case static::RESPONSE_TYPE_STRING:
@@ -201,7 +200,7 @@  discard block
 block discarded – undo
201 200
      */
202 201
     protected function getActionUrl($action)
203 202
     {
204
-        return $this->getBaseUrl().$this->actions[$action][static::ACTION_URI];
203
+        return $this->getBaseUrl() . $this->actions[$action][static::ACTION_URI];
205 204
     }
206 205
 
207 206
     /**
@@ -258,7 +257,7 @@  discard block
 block discarded – undo
258 257
                         return base64_encode(file_get_contents($this->params[$param]));
259 258
                 }
260 259
 
261
-                return '@'.$this->getFilePath($this->params[$param]);
260
+                return '@' . $this->getFilePath($this->params[$param]);
262 261
             case static::PARAM_SPEC_API_KEY:
263 262
                 return is_callable($this->params[$param]) ? $this->params[$param]() : $this->params[$param];
264 263
             case static::PARAM_SPEC_CAPTCHA:
@@ -324,7 +323,7 @@  discard block
 block discarded – undo
324 323
                         break;
325 324
                 }
326 325
                 if (array_key_exists(self::PARAM_SLUG_ENUM, $settings) && !in_array($value, $settings[static::PARAM_SLUG_ENUM])) {
327
-                    throw new DeCaptchaErrors(DeCaptchaErrors::ERROR_PARAM_ENUM, (array_key_exists($field, $this->paramsNames) ? $this->paramsNames[$field] : $field).' = '.$value, $this->errorLang);
326
+                    throw new DeCaptchaErrors(DeCaptchaErrors::ERROR_PARAM_ENUM, (array_key_exists($field, $this->paramsNames) ? $this->paramsNames[$field] : $field) . ' = ' . $value, $this->errorLang);
328 327
                 }
329 328
                 $params[$this->paramsNames[$field]] = $value;
330 329
             }
Please login to merge, or discard this patch.