Code Duplication    Length = 3-5 lines in 2 locations

classes/helpers/FrmAppHelper.php 2 locations

@@ 466-468 (lines=3) @@
463
464
		$value = $args['default'];
465
		if ( $args['type'] == 'get' ) {
466
			if ( $_GET && isset( $_GET[ $args['param'] ] ) ) {
467
				$value = wp_unslash( $_GET[ $args['param'] ] );
468
			}
469
		} elseif ( $args['type'] == 'post' ) {
470
			if ( isset( $_POST[ $args['param'] ] ) ) {
471
				$value = wp_unslash( $_POST[ $args['param'] ] );
@@ 476-480 (lines=5) @@
473
					self::unserialize_or_decode( $value );
474
				}
475
			}
476
		} else {
477
			if ( isset( $_REQUEST[ $args['param'] ] ) ) {
478
				$value = wp_unslash( $_REQUEST[ $args['param'] ] );
479
			}
480
		}
481
482
		self::sanitize_value( $args['sanitize'], $value );
483