Test Failed
Pull Request — master (#21)
by
unknown
09:33
created
src/ReCaptchaBuilderV3.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
16 16
  */
17 17
 class ReCaptchaBuilderV3 extends ReCaptchaBuilder {
18 18
 
19
-	/**
20
-	 * ReCaptchaBuilderV3 constructor.
21
-	 *
22
-	 * @param string $api_site_key
23
-	 * @param string $api_secret_key
24
-	 */
25
-	public function __construct(string $api_site_key, string $api_secret_key) {
19
+    /**
20
+     * ReCaptchaBuilderV3 constructor.
21
+     *
22
+     * @param string $api_site_key
23
+     * @param string $api_secret_key
24
+     */
25
+    public function __construct(string $api_site_key, string $api_secret_key) {
26 26
 
27
-		parent::__construct($api_site_key, $api_secret_key, 'v3',config('recaptcha.language'));
28
-	}
27
+        parent::__construct($api_site_key, $api_secret_key, 'v3',config('recaptcha.language'));
28
+    }
29 29
 
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 */
25 25
 	public function __construct(string $api_site_key, string $api_secret_key) {
26 26
 
27
-		parent::__construct($api_site_key, $api_secret_key, 'v3',config('recaptcha.language'));
27
+		parent::__construct($api_site_key, $api_secret_key, 'v3', config('recaptcha.language'));
28 28
 	}
29 29
 
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
src/ReCaptchaBuilderInvisible.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -16,28 +16,28 @@
 block discarded – undo
16 16
  */
17 17
 class ReCaptchaBuilderInvisible extends ReCaptchaBuilder {
18 18
 
19
-	/**
20
-	 * ReCaptchaBuilderInvisible constructor.
21
-	 *
22
-	 * @param string $api_site_key
23
-	 * @param string $api_secret_key
24
-	 */
25
-	public function __construct(string $api_site_key, string $api_secret_key) {
19
+    /**
20
+     * ReCaptchaBuilderInvisible constructor.
21
+     *
22
+     * @param string $api_site_key
23
+     * @param string $api_secret_key
24
+     */
25
+    public function __construct(string $api_site_key, string $api_secret_key) {
26 26
 
27
-		parent::__construct($api_site_key, $api_secret_key, 'invisible',config('recaptcha.language'));
28
-	}
27
+        parent::__construct($api_site_key, $api_secret_key, 'invisible',config('recaptcha.language'));
28
+    }
29 29
 
30
-	/**
31
-	 * Write HTML <button> tag in your HTML code
32
-	 * Insert before </form> tag
33
-	 *
34
-	 * @param string $buttonInnerHTML
35
-	 *
36
-	 * @return string
37
-	 */
38
-	public function htmlFormButton($buttonInnerHTML = 'Submit'): string {
30
+    /**
31
+     * Write HTML <button> tag in your HTML code
32
+     * Insert before </form> tag
33
+     *
34
+     * @param string $buttonInnerHTML
35
+     *
36
+     * @return string
37
+     */
38
+    public function htmlFormButton($buttonInnerHTML = 'Submit'): string {
39 39
 
40
-		return ($this->version == 'invisible') ? '<button class="g-recaptcha" data-sitekey="' . $this->api_site_key . '" data-callback="biscolabLaravelReCaptcha">' . $buttonInnerHTML . '</button>' : '';
41
-	}
40
+        return ($this->version == 'invisible') ? '<button class="g-recaptcha" data-sitekey="' . $this->api_site_key . '" data-callback="biscolabLaravelReCaptcha">' . $buttonInnerHTML . '</button>' : '';
41
+    }
42 42
 
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	 */
25 25
 	public function __construct(string $api_site_key, string $api_secret_key) {
26 26
 
27
-		parent::__construct($api_site_key, $api_secret_key, 'invisible',config('recaptcha.language'));
27
+		parent::__construct($api_site_key, $api_secret_key, 'invisible', config('recaptcha.language'));
28 28
 	}
29 29
 
30 30
 	/**
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	public function htmlFormButton($buttonInnerHTML = 'Submit'): string {
39 39
 
40
-		return ($this->version == 'invisible') ? '<button class="g-recaptcha" data-sitekey="' . $this->api_site_key . '" data-callback="biscolabLaravelReCaptcha">' . $buttonInnerHTML . '</button>' : '';
40
+		return ($this->version == 'invisible') ? '<button class="g-recaptcha" data-sitekey="'.$this->api_site_key.'" data-callback="biscolabLaravelReCaptcha">'.$buttonInnerHTML.'</button>' : '';
41 41
 	}
42 42
 
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
config/recaptcha.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -13,61 +13,61 @@
 block discarded – undo
13 13
  */
14 14
 return [
15 15
 
16
-	/**
17
-	 *
18
-	 * The site key
19
-	 * get site key @ www.google.com/recaptcha/admin
20
-	 *
21
-	 */
22
-	'api_site_key'                 => env('RECAPTCHA_SITE_KEY', ''),
16
+    /**
17
+     *
18
+     * The site key
19
+     * get site key @ www.google.com/recaptcha/admin
20
+     *
21
+     */
22
+    'api_site_key'                 => env('RECAPTCHA_SITE_KEY', ''),
23 23
 
24
-	/**
25
-	 *
26
-	 * The secret key
27
-	 * get secret key @ www.google.com/recaptcha/admin
28
-	 *
29
-	 */
30
-	'api_secret_key'               => env('RECAPTCHA_SECRET_KEY', ''),
24
+    /**
25
+     *
26
+     * The secret key
27
+     * get secret key @ www.google.com/recaptcha/admin
28
+     *
29
+     */
30
+    'api_secret_key'               => env('RECAPTCHA_SECRET_KEY', ''),
31 31
 
32
-	/**
33
-	 *
34
-	 * ReCATCHA version
35
-	 * Supported: "v2", "invisible", "v3",
36
-	 *
37
-	 * get more info @ https://developers.google.com/recaptcha/docs/versions
38
-	 *
39
-	 */
40
-	'version'                      => env('RECAPTCHA_DEFAULT_VERSION', 'v2'),
32
+    /**
33
+     *
34
+     * ReCATCHA version
35
+     * Supported: "v2", "invisible", "v3",
36
+     *
37
+     * get more info @ https://developers.google.com/recaptcha/docs/versions
38
+     *
39
+     */
40
+    'version'                      => env('RECAPTCHA_DEFAULT_VERSION', 'v2'),
41 41
 
42
-	/**
43
-	 *
44
-	 * ReCATCHA language
45
-	 *
46
-	 * get more info @ https://developers.google.com/recaptcha/docs/language
47
-	 *
48
-	 */
49
-	'language'                      => env('RECAPTCHA_DEFAULT_LANGUAGE', 'en'),
42
+    /**
43
+     *
44
+     * ReCATCHA language
45
+     *
46
+     * get more info @ https://developers.google.com/recaptcha/docs/language
47
+     *
48
+     */
49
+    'language'                      => env('RECAPTCHA_DEFAULT_LANGUAGE', 'en'),
50 50
 
51
-	/**
52
-	 *
53
-	 * IP addresses for which validation will be skipped
54
-	 *
55
-	 */
56
-	'skip_ip'                      => [],
51
+    /**
52
+     *
53
+     * IP addresses for which validation will be skipped
54
+     *
55
+     */
56
+    'skip_ip'                      => [],
57 57
 
58
-	/**
59
-	 *
60
-	 * Default route called to check the Google reCAPTCHA token
61
-	 * @since v3.2.0
62
-	 *
63
-	 */
64
-	'default_validation_route'     => env('RECAPTCHA_DEFAULT_VALIDATION_ROUTE', 'biscolab-recaptcha/validate'),
58
+    /**
59
+     *
60
+     * Default route called to check the Google reCAPTCHA token
61
+     * @since v3.2.0
62
+     *
63
+     */
64
+    'default_validation_route'     => env('RECAPTCHA_DEFAULT_VALIDATION_ROUTE', 'biscolab-recaptcha/validate'),
65 65
 
66
-	/**
67
-	 *
68
-	 * The name of the parameter used to send Google reCAPTCHA token to verify route
69
-	 * @since v3.2.0
70
-	 *
71
-	 */
72
-	'default_token_parameter_name' => env('RECAPTCHA_DEFAULT_TOKEN_PARAMETER_NAME', 'token')
66
+    /**
67
+     *
68
+     * The name of the parameter used to send Google reCAPTCHA token to verify route
69
+     * @since v3.2.0
70
+     *
71
+     */
72
+    'default_token_parameter_name' => env('RECAPTCHA_DEFAULT_TOKEN_PARAMETER_NAME', 'token')
73 73
 ];
74 74
\ No newline at end of file
Please login to merge, or discard this patch.