Code Duplication    Length = 7-7 lines in 2 locations

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

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