Code Duplication    Length = 5-5 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 1773-1777 (lines=5) @@
1770
			$reserved_query_vars = array_merge( $reserved_query_vars, array_keys( $wp_query->fill_query_vars( array() ) ) );
1771
		}
1772
1773
		if ( isset( $pod[ 'options' ][ 'query_var_string' ] ) ) {
1774
			if ( in_array( $pod[ 'options' ][ 'query_var_string' ], $reserved_query_vars ) ) {
1775
				$pod[ 'options' ][ 'query_var_string' ] = $pod[ 'options' ][ 'type' ] . '_' . $pod[ 'options' ][ 'query_var_string' ];
1776
			}
1777
		}
1778
1779
		if ( isset( $pod[ 'options' ][ 'query_var' ] ) ) {
1780
			if ( in_array( $pod[ 'options' ][ 'query_var' ], $reserved_query_vars ) ) {
@@ 1779-1783 (lines=5) @@
1776
			}
1777
		}
1778
1779
		if ( isset( $pod[ 'options' ][ 'query_var' ] ) ) {
1780
			if ( in_array( $pod[ 'options' ][ 'query_var' ], $reserved_query_vars ) ) {
1781
				$pod[ 'options' ][ 'query_var' ] = $pod[ 'options' ][ 'type' ] . '_' . $pod[ 'options' ][ 'query_var' ];
1782
			}
1783
		}
1784
1785
        if ( strlen( $pod[ 'label' ] ) < 1 )
1786
            $pod[ 'label' ] = $pod[ 'name' ];