Code Duplication    Length = 8-8 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 291-298 (lines=8) @@
288
        return $value;
289
    }
290
291
	public static function get_post_param( $param, $default = '', $sanitize = '' ) {
292
		return self::get_simple_request( array(
293
			'type'     => 'post',
294
			'param'    => $param,
295
			'default'  => $default,
296
			'sanitize' => $sanitize,
297
		) );
298
	}
299
300
	/**
301
	 * @since 2.0
@@ 308-315 (lines=8) @@
305
	 * @param string $default
306
	 * @return string|array
307
	 */
308
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
309
		return self::get_simple_request( array(
310
			'type'     => 'get',
311
			'param'    => $param,
312
			'default'  => $default,
313
			'sanitize' => $sanitize,
314
		) );
315
	}
316
317
	/**
318
	 * Get a GET/POST/REQUEST value and sanitize it