| @@ -131,11 +131,8 @@ | ||
| 131 | 131 | 'custom_css' => false, |
| 132 | 132 | ); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - /** | |
| 136 | - * @return void | |
| 137 | - */ | |
| 138 | 135 | private function set_default_options() { |
| 139 | 136 | $this->fill_captcha_settings(); |
| 140 | 137 | |
| 141 | 138 | if ( ! isset( $this->load_style ) ) { |
| @@ -222,11 +219,8 @@ | ||
| 222 | 219 | |
| 223 | 220 | return $value; |
| 224 | 221 | } |
| 225 | 222 | |
| 226 | - /** | |
| 227 | - * @return void | |
| 228 | - */ | |
| 229 | 223 | private function fill_captcha_settings() { |
| 230 | 224 | if ( ! isset( $this->active_captcha ) ) { |
| 231 | 225 | $this->active_captcha = 'recaptcha'; |
| 232 | 226 | } |
| @@ -270,10 +264,8 @@ | ||
| 270 | 264 | /** |
| 271 | 265 | * Get values that may be shown on the front-end without an override in the form settings. |
| 272 | 266 | * |
| 273 | 267 | * @since 3.06.01 |
| 274 | - * | |
| 275 | - * @return string[] | |
| 276 | 268 | */ |
| 277 | 269 | public function translatable_strings() { |
| 278 | 270 | return array( |
| 279 | 271 | 'invalid_msg', |
| @@ -286,10 +278,8 @@ | ||
| 286 | 278 | /** |
| 287 | 279 | * Allow strings to be filtered when a specific form may be displaying them. |
| 288 | 280 | * |
| 289 | 281 | * @since 3.06.01 |
| 290 | - * | |
| 291 | - * @return void | |
| 292 | 282 | */ |
| 293 | 283 | public function maybe_filter_for_form( $args ) { |
| 294 | 284 | if ( isset( $args['current_form'] ) && is_numeric( $args['current_form'] ) ) { |
| 295 | 285 | $this->current_form = $args['current_form']; |
| @@ -299,21 +289,12 @@ | ||
| 299 | 289 | } |
| 300 | 290 | } |
| 301 | 291 | } |
| 302 | 292 | |
| 303 | - /** | |
| 304 | - * @param array $params | |
| 305 | - * @param array $errors | |
| 306 | - */ | |
| 307 | 293 | public function validate( $params, $errors ) { |
| 308 | 294 | return apply_filters( 'frm_validate_settings', $errors, $params ); |
| 309 | 295 | } |
| 310 | 296 | |
| 311 | - /** | |
| 312 | - * @param array $params | |
| 313 | - * | |
| 314 | - * @return void | |
| 315 | - */ | |
| 316 | 297 | public function update( $params ) { |
| 317 | 298 | $this->fill_with_defaults( $params ); |
| 318 | 299 | $this->update_settings( $params ); |
| 319 | 300 | |
| @@ -333,11 +314,8 @@ | ||
| 333 | 314 | $frm_style->update( 'default' ); |
| 334 | 315 | } |
| 335 | 316 | } |
| 336 | 317 | |
| 337 | - /** | |
| 338 | - * @return void | |
| 339 | - */ | |
| 340 | 318 | private function update_settings( $params ) { |
| 341 | 319 | $this->active_captcha = $params['frm_active_captcha']; |
| 342 | 320 | $this->hcaptcha_pubkey = trim( $params['frm_hcaptcha_pubkey'] ); |
| 343 | 321 | $this->hcaptcha_privkey = $params['frm_hcaptcha_privkey']; |
| @@ -354,11 +332,8 @@ | ||
| 354 | 332 | $this->$set = isset( $params[ 'frm_' . $set ] ) ? absint( $params[ 'frm_' . $set ] ) : 0; |
| 355 | 333 | } |
| 356 | 334 | } |
| 357 | 335 | |
| 358 | - /** | |
| 359 | - * @return void | |
| 360 | - */ | |
| 361 | 336 | private function update_roles( $params ) { |
| 362 | 337 | global $wp_roles; |
| 363 | 338 | |
| 364 | 339 | $frm_roles = FrmAppHelper::frm_capabilities(); |
| @@ -380,11 +355,8 @@ | ||
| 380 | 355 | } |
| 381 | 356 | } |
| 382 | 357 | } |
| 383 | 358 | |
| 384 | - /** | |
| 385 | - * @return void | |
| 386 | - */ | |
| 387 | 359 | public function store() { |
| 388 | 360 | // Save the posted value in the database |
| 389 | 361 | |
| 390 | 362 | update_option( 'frm_options', $this ); |