Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 1543-1544 (lines=2) @@
1540
            if ( 'post_type' == $pod_params[ 'type' ] ) {
1541
                $check = get_post_type_object( $pod_params[ 'name' ] );
1542
1543
                if ( !empty( $check ) )
1544
                    return pods_error( sprintf( __( 'Post Type %s already exists, try extending it instead', 'pods' ), $pod_params[ 'name' ] ), $this );
1545
1546
                $pod_params[ 'options' ][ 'supports_title' ] = 1;
1547
                $pod_params[ 'options' ][ 'supports_editor' ] = 1;
@@ 1552-1553 (lines=2) @@
1549
            elseif ( 'taxonomy' == $pod_params[ 'type' ] ) {
1550
                $check = get_taxonomy( $pod_params[ 'name' ] );
1551
1552
                if ( !empty( $check ) )
1553
                    return pods_error( sprintf( __( 'Taxonomy %s already exists, try extending it instead', 'pods' ), $pod_params[ 'name' ] ), $this );
1554
            }
1555
        }
1556