Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 461-471 (lines=11) @@
458
		return $value;
459
	}
460
461
	public static function get_post_param( $param, $default = '', $sanitize = '', $serialized = false ) {
462
		return self::get_simple_request(
463
			array(
464
				'type'     => 'post',
465
				'param'    => $param,
466
				'default'  => $default,
467
				'sanitize' => $sanitize,
468
				'serialized' => $serialized,
469
			)
470
		);
471
	}
472
473
	/**
474
	 * @since 2.0
@@ 482-491 (lines=10) @@
479
	 *
480
	 * @return string|array
481
	 */
482
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
483
		return self::get_simple_request(
484
			array(
485
				'type'     => 'get',
486
				'param'    => $param,
487
				'default'  => $default,
488
				'sanitize' => $sanitize,
489
			)
490
		);
491
	}
492
493
	/**
494
	 * Get a GET/POST/REQUEST value and sanitize it