Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 1531-1532 (lines=2) @@
1528
            if ( 'post_type' == $pod_params[ 'type' ] ) {
1529
                $check = get_post_type_object( $pod_params[ 'name' ] );
1530
1531
                if ( !empty( $check ) )
1532
                    return pods_error( sprintf( __( 'Post Type %s already exists, try extending it instead', 'pods' ), $pod_params[ 'name' ] ), $this );
1533
1534
                $pod_params[ 'options' ][ 'supports_title' ] = 1;
1535
                $pod_params[ 'options' ][ 'supports_editor' ] = 1;
@@ 1540-1541 (lines=2) @@
1537
            elseif ( 'taxonomy' == $pod_params[ 'type' ] ) {
1538
                $check = get_taxonomy( $pod_params[ 'name' ] );
1539
1540
                if ( !empty( $check ) )
1541
                    return pods_error( sprintf( __( 'Taxonomy %s already exists, try extending it instead', 'pods' ), $pod_params[ 'name' ] ), $this );
1542
            }
1543
        }
1544