@@ -43,73 +43,73 @@ class ReCaptcha
43
43
* Version of this client library.
44
44
* @const string
45
45
*/
46
- const VERSION = 'php_1.2.4 ' ;
46
+ public const VERSION = 'php_1.2.4 ' ;
47
47
48
48
/**
49
49
* URL for reCAPTCHA siteverify API
50
50
* @const string
51
51
*/
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 ' ;
53
53
54
54
/**
55
55
* Invalid JSON received
56
56
* @const string
57
57
*/
58
- const E_INVALID_JSON = 'invalid-json ' ;
58
+ public const E_INVALID_JSON = 'invalid-json ' ;
59
59
60
60
/**
61
61
* Could not connect to service
62
62
* @const string
63
63
*/
64
- const E_CONNECTION_FAILED = 'connection-failed ' ;
64
+ public const E_CONNECTION_FAILED = 'connection-failed ' ;
65
65
66
66
/**
67
67
* Did not receive a 200 from the service
68
68
* @const string
69
69
*/
70
- const E_BAD_RESPONSE = 'bad-response ' ;
70
+ public const E_BAD_RESPONSE = 'bad-response ' ;
71
71
72
72
/**
73
73
* Not a success, but no error codes received!
74
74
* @const string
75
75
*/
76
- const E_UNKNOWN_ERROR = 'unknown-error ' ;
76
+ public const E_UNKNOWN_ERROR = 'unknown-error ' ;
77
77
78
78
/**
79
79
* ReCAPTCHA response not provided
80
80
* @const string
81
81
*/
82
- const E_MISSING_INPUT_RESPONSE = 'missing-input-response ' ;
82
+ public const E_MISSING_INPUT_RESPONSE = 'missing-input-response ' ;
83
83
84
84
/**
85
85
* Expected hostname did not match
86
86
* @const string
87
87
*/
88
- const E_HOSTNAME_MISMATCH = 'hostname-mismatch ' ;
88
+ public const E_HOSTNAME_MISMATCH = 'hostname-mismatch ' ;
89
89
90
90
/**
91
91
* Expected APK package name did not match
92
92
* @const string
93
93
*/
94
- const E_APK_PACKAGE_NAME_MISMATCH = 'apk_package_name-mismatch ' ;
94
+ public const E_APK_PACKAGE_NAME_MISMATCH = 'apk_package_name-mismatch ' ;
95
95
96
96
/**
97
97
* Expected action did not match
98
98
* @const string
99
99
*/
100
- const E_ACTION_MISMATCH = 'action-mismatch ' ;
100
+ public const E_ACTION_MISMATCH = 'action-mismatch ' ;
101
101
102
102
/**
103
103
* Score threshold not met
104
104
* @const string
105
105
*/
106
- const E_SCORE_THRESHOLD_NOT_MET = 'score-threshold-not-met ' ;
106
+ public const E_SCORE_THRESHOLD_NOT_MET = 'score-threshold-not-met ' ;
107
107
108
108
/**
109
109
* Challenge timeout
110
110
* @const string
111
111
*/
112
- const E_CHALLENGE_TIMEOUT = 'challenge-timeout ' ;
112
+ public const E_CHALLENGE_TIMEOUT = 'challenge-timeout ' ;
113
113
114
114
/**
115
115
* Shared secret for the site.
0 commit comments