Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 659-661 (lines=3) @@
656
		$args = wp_parse_args( $atts, $default );
657
		$args['post_type'] = self::CUSTOM_POST_TYPE; // Force this post type
658
659
		if ( false != $atts['include_type'] || false != $atts['include_tag'] ) {
660
			$args['tax_query'] = array();
661
		}
662
663
		// If 'include_type' has been set use it on the main query
664
		if ( false != $atts['include_type'] ) {
@@ 681-683 (lines=3) @@
678
			) );
679
		}
680
681
		if ( false != $atts['include_type'] && false != $atts['include_tag'] ) {
682
			$args['tax_query']['relation'] = 'AND';
683
		}
684
685
		// Run the query and return
686
		$query = new WP_Query( $args );