Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsInit.php 2 locations

@@ 880-881 (lines=2) @@
877
			$taxonomy = substr( $taxonomy, 0, 32 );
878
879
			// i18n compatibility for plugins that override it
880
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
881
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL taxonomy slug', 'pods' );
882
			}
883
884
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {
@@ 911-912 (lines=2) @@
908
			$post_type = substr( $post_type, 0, 20 );
909
910
			// i18n compatibility for plugins that override it
911
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
912
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL slug', 'pods' );
913
			}
914
915
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {