| @@ -25,9 +25,8 @@ | ||
| 25 | 25 | * @return void |
| 26 | 26 | */ |
| 27 | 27 | public static function maybe_init( $form_id ) { |
| 28 | 28 | $antispam = new self( $form_id ); |
| 29 | - | |
| 30 | 29 | if ( $antispam->run_antispam() ) { |
| 31 | 30 | $antispam->init(); |
| 32 | 31 | } |
| 33 | 32 | } |
| @@ -72,11 +71,8 @@ | ||
| 72 | 71 | |
| 73 | 72 | return $form_token_string; |
| 74 | 73 | } |
| 75 | 74 | |
| 76 | - /** | |
| 77 | - * @return string | |
| 78 | - */ | |
| 79 | 75 | private function get_antispam_secret_key() { |
| 80 | 76 | $secret_key = get_option( 'frm_antispam_secret_key' ); |
| 81 | 77 | |
| 82 | 78 | // If we already have the secret, send it back. |
| @@ -185,9 +181,8 @@ | ||
| 185 | 181 | * @return void |
| 186 | 182 | */ |
| 187 | 183 | public static function maybe_echo_token( $form_id ) { |
| 188 | 184 | $antispam = new self( $form_id ); |
| 189 | - | |
| 190 | 185 | if ( $antispam->run_antispam() ) { |
| 191 | 186 | echo 'data-token="' . esc_attr( $antispam->get() ) . '"'; |
| 192 | 187 | } |
| 193 | 188 | } |