Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 491-501 (lines=11) @@
488
		return $value;
489
	}
490
491
	public static function get_post_param( $param, $default = '', $sanitize = '', $serialized = false ) {
492
		return self::get_simple_request(
493
			array(
494
				'type'     => 'post',
495
				'param'    => $param,
496
				'default'  => $default,
497
				'sanitize' => $sanitize,
498
				'serialized' => $serialized,
499
			)
500
		);
501
	}
502
503
	/**
504
	 * @since 2.0
@@ 512-521 (lines=10) @@
509
	 *
510
	 * @return string|array
511
	 */
512
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
513
		return self::get_simple_request(
514
			array(
515
				'type'     => 'get',
516
				'param'    => $param,
517
				'default'  => $default,
518
				'sanitize' => $sanitize,
519
			)
520
		);
521
	}
522
523
	/**
524
	 * Get a GET/POST/REQUEST value and sanitize it