Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

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