Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsInit.php 2 locations

@@ 874-875 (lines=2) @@
871
			$taxonomy = substr( $taxonomy, 0, 32 );
872
873
			// i18n compatibility for plugins that override it
874
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
875
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL taxonomy slug', 'pods' );
876
			}
877
878
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {
@@ 905-906 (lines=2) @@
902
			$post_type = substr( $post_type, 0, 20 );
903
904
			// i18n compatibility for plugins that override it
905
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
906
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL slug', 'pods' );
907
			}
908
909
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {