Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsInit.php 2 locations

@@ 850-851 (lines=2) @@
847
			$taxonomy = substr( $taxonomy, 0, 32 );
848
849
			// i18n compatibility for plugins that override it
850
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
851
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL taxonomy slug', 'pods' );
852
			}
853
854
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {
@@ 881-882 (lines=2) @@
878
			$post_type = substr( $post_type, 0, 20 );
879
880
			// i18n compatibility for plugins that override it
881
			if ( is_array( $options['rewrite'] ) && isset( $options['rewrite']['slug'] ) && ! empty( $options['rewrite']['slug'] ) ) {
882
				$options['rewrite']['slug'] = _x( $options['rewrite']['slug'], 'URL slug', 'pods' );
883
			}
884
885
			if ( 1 == pods_var( 'pods_debug_register', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {