Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

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