Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 413-423 (lines=11) @@
410
		return $value;
411
	}
412
413
	public static function get_post_param( $param, $default = '', $sanitize = '', $serialized = false ) {
414
		return self::get_simple_request(
415
			array(
416
				'type'     => 'post',
417
				'param'    => $param,
418
				'default'  => $default,
419
				'sanitize' => $sanitize,
420
				'serialized' => $serialized,
421
			)
422
		);
423
	}
424
425
	/**
426
	 * @since 2.0
@@ 434-443 (lines=10) @@
431
	 *
432
	 * @return string|array
433
	 */
434
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
435
		return self::get_simple_request(
436
			array(
437
				'type'     => 'get',
438
				'param'    => $param,
439
				'default'  => $default,
440
				'sanitize' => $sanitize,
441
			)
442
		);
443
	}
444
445
	/**
446
	 * Get a GET/POST/REQUEST value and sanitize it