Code Duplication    Length = 5-8 lines in 3 locations

components/Templates/includes/auto-template/Pods_Templates_Auto_Template_Front_End.php 3 locations

@@ 287-291 (lines=5) @@
284
			}
285
			//if pfat_archive was set try to use that template
286
			//check if we are on an archive of the post type
287
			elseif ( $this_pod[ 'archive' ] && is_post_type_archive( $current_post_type ) ) {
288
				//load the template
289
				$content = $this->load_template( $this_pod[ 'archive' ], $content , $pods, $this_pod[ 'archive_append' ] );
290
291
			}
292
			//if pfat_archive was set and we're in the blog index, try to append template
293
			elseif ( is_home() && $this_pod[ 'archive' ] && $current_post_type === 'post'  ) {
294
				//append the template
@@ 293-297 (lines=5) @@
290
291
			}
292
			//if pfat_archive was set and we're in the blog index, try to append template
293
			elseif ( is_home() && $this_pod[ 'archive' ] && $current_post_type === 'post'  ) {
294
				//append the template
295
				$content = $this->load_template( $this_pod[ 'archive' ], $content , $pods, $this_pod[ 'archive_append' ] );
296
297
			}
298
			//if is taxonomy archive of the selected taxonomy
299
			elseif ( is_tax( $current_post_type )  ) {
300
				//if pfat_single was set try to use that template
@@ 299-306 (lines=8) @@
296
297
			}
298
			//if is taxonomy archive of the selected taxonomy
299
			elseif ( is_tax( $current_post_type )  ) {
300
				//if pfat_single was set try to use that template
301
				if ( $this_pod[ 'archive' ] ) {
302
					//append the template
303
					$content = $this->load_template( $this_pod[ 'archive' ], $content , $pods, $this_pod[ 'archive_append' ] );
304
				}
305
306
			}
307
308
		}
309