Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsInit.php 2 locations

@@ 767-768 (lines=2) @@
764
			$taxonomy = substr( $taxonomy, 0, 32 );
765
766
			// i18n compatibility for plugins that override it
767
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
768
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL taxonomy slug', 'pods' );
769
			}
770
771
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {
@@ 798-799 (lines=2) @@
795
			$post_type = substr( $post_type, 0, 20 );
796
797
			// i18n compatibility for plugins that override it
798
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
799
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL slug', 'pods' );
800
			}
801
802
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {