Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsInit.php 2 locations

@@ 356-361 (lines=6) @@
353
354
            foreach ( $post_types as $post_type ) {
355
                // Post Type exists already
356
                if ( isset( $pods_cpt_ct[ 'post_types' ][ $post_type[ 'name' ] ] ) )
357
                    continue;
358
                elseif ( !empty( $post_type[ 'object' ] ) && isset( $existing_post_types[ $post_type[ 'object' ] ] ) )
359
                    continue;
360
                elseif ( !$force && isset( $existing_post_types[ $post_type[ 'name' ] ] ) )
361
                    continue;
362
363
                $post_type[ 'options' ][ 'name' ] = $post_type[ 'name' ];
364
                $post_type = array_merge( $post_type, (array) $post_type[ 'options' ] );
@@ 552-557 (lines=6) @@
549
550
            foreach ( $taxonomies as $taxonomy ) {
551
                // Taxonomy Type exists already
552
                if ( isset( $pods_cpt_ct[ 'taxonomies' ][ $taxonomy[ 'name' ] ] ) )
553
                    continue;
554
                elseif ( !empty( $taxonomy[ 'object' ] ) && isset( $existing_taxonomies[ $taxonomy[ 'object' ] ] ) )
555
                    continue;
556
                elseif ( !$force && isset( $existing_taxonomies[ $taxonomy[ 'name' ] ] ) )
557
                    continue;
558
559
                $taxonomy[ 'options' ][ 'name' ] = $taxonomy[ 'name' ];
560
                $taxonomy = array_merge( $taxonomy, (array) $taxonomy[ 'options' ] );