Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 443-453 (lines=11) @@
440
		return $value;
441
	}
442
443
	public static function get_post_param( $param, $default = '', $sanitize = '', $serialized = false ) {
444
		return self::get_simple_request(
445
			array(
446
				'type'     => 'post',
447
				'param'    => $param,
448
				'default'  => $default,
449
				'sanitize' => $sanitize,
450
				'serialized' => $serialized,
451
			)
452
		);
453
	}
454
455
	/**
456
	 * @since 2.0
@@ 464-473 (lines=10) @@
461
	 *
462
	 * @return string|array
463
	 */
464
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
465
		return self::get_simple_request(
466
			array(
467
				'type'     => 'get',
468
				'param'    => $param,
469
				'default'  => $default,
470
				'sanitize' => $sanitize,
471
			)
472
		);
473
	}
474
475
	/**
476
	 * Get a GET/POST/REQUEST value and sanitize it