Code Duplication    Length = 5-5 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 1764-1768 (lines=5) @@
1761
			$reserved_query_vars = array_merge( $reserved_query_vars, array_keys( $wp_query->fill_query_vars( array() ) ) );
1762
		}
1763
1764
		if ( isset( $pod[ 'options' ][ 'query_var_string' ] ) ) {
1765
			if ( in_array( $pod[ 'options' ][ 'query_var_string' ], $reserved_query_vars ) ) {
1766
				$pod[ 'options' ][ 'query_var_string' ] = $pod[ 'options' ][ 'type' ] . '_' . $pod[ 'options' ][ 'query_var_string' ];
1767
			}
1768
		}
1769
1770
		if ( isset( $pod[ 'options' ][ 'query_var' ] ) ) {
1771
			if ( in_array( $pod[ 'options' ][ 'query_var' ], $reserved_query_vars ) ) {
@@ 1770-1774 (lines=5) @@
1767
			}
1768
		}
1769
1770
		if ( isset( $pod[ 'options' ][ 'query_var' ] ) ) {
1771
			if ( in_array( $pod[ 'options' ][ 'query_var' ], $reserved_query_vars ) ) {
1772
				$pod[ 'options' ][ 'query_var' ] = $pod[ 'options' ][ 'type' ] . '_' . $pod[ 'options' ][ 'query_var' ];
1773
			}
1774
		}
1775
1776
        if ( strlen( $pod[ 'label' ] ) < 1 )
1777
            $pod[ 'label' ] = $pod[ 'name' ];