Code Duplication    Length = 7-7 lines in 2 locations

modules/custom-post-types/portfolios.php 2 locations

@@ 660-666 (lines=7) @@
657
		}
658
659
		// If 'include_type' has been set use it on the main query
660
		if ( false != $atts['include_type'] ) {
661
			array_push( $args['tax_query'], array(
662
				'taxonomy' => self::CUSTOM_TAXONOMY_TYPE,
663
				'field'    => 'slug',
664
				'terms'    => $atts['include_type'],
665
			) );
666
		}
667
668
		// If 'include_tag' has been set use it on the main query
669
		if ( false != $atts['include_tag'] ) {
@@ 669-675 (lines=7) @@
666
		}
667
668
		// If 'include_tag' has been set use it on the main query
669
		if ( false != $atts['include_tag'] ) {
670
			array_push( $args['tax_query'], array(
671
				'taxonomy' => self::CUSTOM_TAXONOMY_TAG,
672
				'field'    => 'slug',
673
				'terms'    => $atts['include_tag'],
674
			) );
675
		}
676
677
		if ( false != $atts['include_type'] && false != $atts['include_tag'] ) {
678
			$args['tax_query']['relation'] = 'AND';