Code Duplication    Length = 3-3 lines in 2 locations

modules/custom-post-types/portfolios.php 1 location

@@ 523-525 (lines=3) @@
520
			$atts['display_author'] = false;
521
		}
522
523
		if ( $atts['display_content'] && 'true' != $atts['display_content'] && 'full' != $atts['display_content'] ) {
524
			$atts['display_content'] = false;
525
		}
526
527
		if ( $atts['include_type'] ) {
528
			$atts['include_type'] = explode( ',', str_replace( ' ', '', $atts['include_type'] ) );

modules/custom-post-types/testimonial.php 1 location

@@ 546-548 (lines=3) @@
543
		), $atts, 'testimonial' );
544
545
		// A little sanitization
546
		if ( $atts['display_content'] && 'true' != $atts['display_content'] && 'full' != $atts['display_content'] ) {
547
			$atts['display_content'] = false;
548
		}
549
550
		if ( $atts['image'] && 'true' != $atts['image'] ) {
551
			$atts['image'] = false;