Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 1804-1805 (lines=2) @@
1801
            if ( 'post_type' == $pod[ 'type' ] ) {
1802
                $check = get_post_type_object( $params->name );
1803
1804
                if ( !empty( $check ) )
1805
                    return pods_error( sprintf( __( 'Post Type %s already exists, you cannot rename %s to that', 'pods' ), $params->name, $old_name ), $this );
1806
            }
1807
            elseif ( 'taxonomy' == $pod[ 'type' ] ) {
1808
                $check = get_taxonomy( $params->name );
@@ 1810-1811 (lines=2) @@
1807
            elseif ( 'taxonomy' == $pod[ 'type' ] ) {
1808
                $check = get_taxonomy( $params->name );
1809
1810
                if ( !empty( $check ) )
1811
                    return pods_error( sprintf( __( 'Taxonomy %s already exists, you cannot rename %s to that', 'pods' ), $params->name, $old_name ), $this );
1812
            }
1813
        }
1814