Skip to content

Commit 2066a6e

Browse files
committed
Adding missing attributes via linter
1 parent 82a034c commit 2066a6e

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

src/ReCaptcha/ReCaptcha.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,73 +43,73 @@ class ReCaptcha
4343
* Version of this client library.
4444
* @const string
4545
*/
46-
const VERSION = 'php_1.2.4';
46+
public const VERSION = 'php_1.2.4';
4747

4848
/**
4949
* URL for reCAPTCHA siteverify API
5050
* @const string
5151
*/
52-
const SITE_VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify';
52+
public const SITE_VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify';
5353

5454
/**
5555
* Invalid JSON received
5656
* @const string
5757
*/
58-
const E_INVALID_JSON = 'invalid-json';
58+
public const E_INVALID_JSON = 'invalid-json';
5959

6060
/**
6161
* Could not connect to service
6262
* @const string
6363
*/
64-
const E_CONNECTION_FAILED = 'connection-failed';
64+
public const E_CONNECTION_FAILED = 'connection-failed';
6565

6666
/**
6767
* Did not receive a 200 from the service
6868
* @const string
6969
*/
70-
const E_BAD_RESPONSE = 'bad-response';
70+
public const E_BAD_RESPONSE = 'bad-response';
7171

7272
/**
7373
* Not a success, but no error codes received!
7474
* @const string
7575
*/
76-
const E_UNKNOWN_ERROR = 'unknown-error';
76+
public const E_UNKNOWN_ERROR = 'unknown-error';
7777

7878
/**
7979
* ReCAPTCHA response not provided
8080
* @const string
8181
*/
82-
const E_MISSING_INPUT_RESPONSE = 'missing-input-response';
82+
public const E_MISSING_INPUT_RESPONSE = 'missing-input-response';
8383

8484
/**
8585
* Expected hostname did not match
8686
* @const string
8787
*/
88-
const E_HOSTNAME_MISMATCH = 'hostname-mismatch';
88+
public const E_HOSTNAME_MISMATCH = 'hostname-mismatch';
8989

9090
/**
9191
* Expected APK package name did not match
9292
* @const string
9393
*/
94-
const E_APK_PACKAGE_NAME_MISMATCH = 'apk_package_name-mismatch';
94+
public const E_APK_PACKAGE_NAME_MISMATCH = 'apk_package_name-mismatch';
9595

9696
/**
9797
* Expected action did not match
9898
* @const string
9999
*/
100-
const E_ACTION_MISMATCH = 'action-mismatch';
100+
public const E_ACTION_MISMATCH = 'action-mismatch';
101101

102102
/**
103103
* Score threshold not met
104104
* @const string
105105
*/
106-
const E_SCORE_THRESHOLD_NOT_MET = 'score-threshold-not-met';
106+
public const E_SCORE_THRESHOLD_NOT_MET = 'score-threshold-not-met';
107107

108108
/**
109109
* Challenge timeout
110110
* @const string
111111
*/
112-
const E_CHALLENGE_TIMEOUT = 'challenge-timeout';
112+
public const E_CHALLENGE_TIMEOUT = 'challenge-timeout';
113113

114114
/**
115115
* Shared secret for the site.

src/ReCaptcha/RequestMethod.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
*/
4040
interface RequestMethod
4141
{
42-
4342
/**
4443
* Submit the request with the specified parameters.
4544
*

src/ReCaptcha/RequestMethod/Curl.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
*/
4040
class Curl
4141
{
42-
4342
/**
4443
* @see http://php.net/curl_init
4544
* @param string $url

0 commit comments

Comments
 (0)