Code Duplication    Length = 8-8 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 331-338 (lines=8) @@
328
        return $value;
329
    }
330
331
	public static function get_post_param( $param, $default = '', $sanitize = '' ) {
332
		return self::get_simple_request(
333
			array(
334
				'type'     => 'post',
335
				'param'    => $param,
336
				'default'  => $default,
337
				'sanitize' => $sanitize,
338
			)
339
		);
340
	}
341
@@ 350-357 (lines=8) @@
347
	 * @param string $default
348
	 * @return string|array
349
	 */
350
	public static function simple_get( $param, $sanitize = 'sanitize_text_field', $default = '' ) {
351
		return self::get_simple_request(
352
			array(
353
				'type'     => 'get',
354
				'param'    => $param,
355
				'default'  => $default,
356
				'sanitize' => $sanitize,
357
			)
358
		);
359
	}
360