@@ -64,7 +64,8 @@ private function __construct()
6464 protected function read_settings ()
6565 {
6666 $ integrations = get_option ('mc4wp_integrations ' , []);
67- if (false === is_array ($ integrations ) ||
67+ if (
68+ false === is_array ($ integrations ) ||
6869 false === key_exists ('prosopo-procaptcha ' , $ integrations ) ||
6970 false === is_array ($ integrations ['prosopo-procaptcha ' ])
7071 ) {
@@ -233,7 +234,8 @@ protected function is_human_made_request()
233234
234235 public function maybe_add_type_module_attribute (string $ tag , string $ handle , string $ src ): string
235236 {
236- if ('prosopo-procaptcha ' !== $ handle ||
237+ if (
238+ 'prosopo-procaptcha ' !== $ handle ||
237239 // make sure we don't make it twice if other Procaptcha integrations are present.
238240 false !== strpos ('type="module" ' , $ tag )
239241 ) {
@@ -262,7 +264,8 @@ public function is_enabled()
262264 */
263265 public function print_captcha_element ($ is_without_validation_element = false , $ is_forced_render = false )
264266 {
265- if (false === $ this ->is_displayed_for_authorized &&
267+ if (
268+ false === $ this ->is_displayed_for_authorized &&
266269 true === is_user_logged_in () &&
267270 false === $ is_forced_render
268271 ) {
@@ -329,7 +332,8 @@ public function register_error_message(array $messages)
329332 */
330333 public function validate_form ($ error_keys , $ form )
331334 {
332- if (false === strpos ($ form ->content , $ this ->get_field_stub ()) ||
335+ if (
336+ false === strpos ($ form ->content , $ this ->get_field_stub ()) ||
333337 (false === $ this ->is_displayed_for_authorized && true === is_user_logged_in ()) ||
334338 true === $ this ->is_human_made_request ()
335339 ) {
0 commit comments