Code Duplication    Length = 10-11 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 548-558 (lines=11) @@
545
		return $value;
546
	}
547
548
	public static function get_post_param( $param, $default = '', $sanitize = '', $serialized = false ) {
549
		return self::get_simple_request(
550
			array(
551
				'type'     => 'post',
552
				'param'    => $param,
553
				'default'  => $default,
554
				'sanitize' => $sanitize,
555
				'serialized' => $serialized,
556
			)
557
		);
558
	}
559
560
	/**
561
	 * @since 2.0
@@ 569-578 (lines=10) @@
566
	 *
567
	 * @return string|array
568
	 */
569
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
570
		return self::get_simple_request(
571
			array(
572
				'type'     => 'get',
573
				'param'    => $param,
574
				'default'  => $default,
575
				'sanitize' => $sanitize,
576
			)
577
		);
578
	}
579
580
	/**
581
	 * Get a GET/POST/REQUEST value and sanitize it