Code Duplication    Length = 8-8 lines in 2 locations

includes/data.php 2 locations

@@ 51-58 (lines=8) @@
48
49
		$output = (object) $output;
50
	}
51
	elseif ( is_array( $input ) ) {
52
		$n_params = $params;
53
		$n_params[ 'nested' ] = true;
54
55
		foreach ( $input as $key => $val ) {
56
			$output[ pods_sanitize( $key ) ] = pods_sanitize( $val, $n_params );
57
		}
58
	}
59
	elseif ( !empty( $params[ 'type' ] ) && false !== strpos( $params[ 'type' ], '%' ) ) {
60
		/**
61
		 * @var $wpdb wpdb
@@ 225-232 (lines=8) @@
222
223
		$output = (object) $output;
224
	}
225
	elseif ( is_array( $input ) ) {
226
		$n_params             = (array) $params;
227
		$n_params[ 'nested' ] = true;
228
229
		foreach ( $input as $key => $val ) {
230
			$output[ pods_unsanitize( $key ) ] = pods_unsanitize( $val, $n_params );
231
		}
232
	}
233
	else {
234
		$output = wp_unslash( $input );
235
	}