Code Duplication    Length = 5-5 lines in 2 locations

classes/PodsAPI.php 2 locations

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