Code Duplication    Length = 4-4 lines in 2 locations

modules/shortcodes/archiveorg-book.php 1 location

@@ 72-75 (lines=4) @@
69
		$width = intval( $atts['width'] );
70
	}
71
72
	if ( ! $atts['height'] ) {
73
		$height = round( ( $width / 640 ) * 360 );
74
	} else {
75
		$height = intval( $atts['height'] );
76
	}
77
78
	$url = esc_url( set_url_scheme( "http://archive.org/stream/{$id}?ui=embed#mode/1up" ) );

modules/shortcodes/archiveorg.php 1 location

@@ 74-77 (lines=4) @@
71
		$width = intval( $atts['width'] );
72
	}
73
74
	if ( ! $atts['height'] ) {
75
		$height = round( ( $width / 640 ) * 360 );
76
	} else {
77
		$height = intval( $atts['height'] );
78
	}
79
80
	if ( $atts['autoplay'] ) {