Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 1792-1793 (lines=2) @@
1789
            if ( 'post_type' == $pod[ 'type' ] ) {
1790
                $check = get_post_type_object( $params->name );
1791
1792
                if ( !empty( $check ) )
1793
                    return pods_error( sprintf( __( 'Post Type %s already exists, you cannot rename %s to that', 'pods' ), $params->name, $old_name ), $this );
1794
            }
1795
            elseif ( 'taxonomy' == $pod[ 'type' ] ) {
1796
                $check = get_taxonomy( $params->name );
@@ 1798-1799 (lines=2) @@
1795
            elseif ( 'taxonomy' == $pod[ 'type' ] ) {
1796
                $check = get_taxonomy( $params->name );
1797
1798
                if ( !empty( $check ) )
1799
                    return pods_error( sprintf( __( 'Taxonomy %s already exists, you cannot rename %s to that', 'pods' ), $params->name, $old_name ), $this );
1800
            }
1801
        }
1802