Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 431-441 (lines=11) @@
428
		return $value;
429
	}
430
431
	public static function get_post_param( $param, $default = '', $sanitize = '', $serialized = false ) {
432
		return self::get_simple_request(
433
			array(
434
				'type'     => 'post',
435
				'param'    => $param,
436
				'default'  => $default,
437
				'sanitize' => $sanitize,
438
				'serialized' => $serialized,
439
			)
440
		);
441
	}
442
443
	/**
444
	 * @since 2.0
@@ 452-461 (lines=10) @@
449
	 *
450
	 * @return string|array
451
	 */
452
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
453
		return self::get_simple_request(
454
			array(
455
				'type'     => 'get',
456
				'param'    => $param,
457
				'default'  => $default,
458
				'sanitize' => $sanitize,
459
			)
460
		);
461
	}
462
463
	/**
464
	 * Get a GET/POST/REQUEST value and sanitize it