Code Duplication    Length = 8-8 lines in 2 locations

includes/data.php 2 locations

@@ 59-66 (lines=8) @@
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
62
		 */
63
		global $wpdb;
64
65
		$output = $wpdb->prepare( $params[ 'type' ], $output );
66
	}
67
	// @todo Switch this full over to esc_sql once we get sanitization sane again in PodsAPI so we *don't* have to unsanitize in various places
68
	elseif ( function_exists( 'wp_slash' ) ) {
69
		$output = wp_slash( $input );
@@ 178-185 (lines=8) @@
175
			$output[ $key ] = pods_slash( $val, $params );
176
		}
177
	}
178
	elseif ( !empty( $params[ 'type' ] ) && false !== strpos( $params[ 'type' ], '%' ) ) {
179
		/**
180
		 * @var $wpdb wpdb
181
		 */
182
		global $wpdb;
183
184
		$output = $wpdb->prepare( $params[ 'type' ], $output );
185
	}
186
	elseif ( function_exists( 'wp_slash' ) ) {
187
		$output = wp_slash( $input );
188
	}