Code Duplication    Length = 8-8 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 279-286 (lines=8) @@
276
        return $value;
277
    }
278
279
	public static function get_post_param( $param, $default = '', $sanitize = '' ) {
280
		return self::get_simple_request( array(
281
			'type'     => 'post',
282
			'param'    => $param,
283
			'default'  => $default,
284
			'sanitize' => $sanitize,
285
		) );
286
	}
287
288
	/**
289
	 * @since 2.0
@@ 296-303 (lines=8) @@
293
	 * @param string $default
294
	 * @return string|array
295
	 */
296
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
297
		return self::get_simple_request( array(
298
			'type'     => 'get',
299
			'param'    => $param,
300
			'default'  => $default,
301
			'sanitize' => $sanitize,
302
		) );
303
	}
304
305
	/**
306
	 * Get a GET/POST/REQUEST value and sanitize it