Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 519-521 (lines=3) @@
516
		), $atts, 'testimonial' );
517
518
		// A little sanitization
519
		if ( $atts['display_content'] && 'true' != $atts['display_content'] && 'full' != $atts['display_content'] ) {
520
			$atts['display_content'] = false;
521
		}
522
523
		if ( $atts['image'] && 'true' != $atts['image'] ) {
524
			$atts['image'] = false;

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

@@ 427-429 (lines=3) @@
424
			$atts['display_author'] = false;
425
		}
426
427
		if ( $atts['display_content'] && 'true' != $atts['display_content'] && 'full' != $atts['display_content'] ) {
428
			$atts['display_content'] = false;
429
		}
430
431
		if ( $atts['include_type'] ) {
432
			$atts['include_type'] = explode( ',', str_replace( ' ', '', $atts['include_type'] ) );