Code Duplication    Length = 4-4 lines in 2 locations

modules/shortcodes/archiveorg-book.php 1 location

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

modules/shortcodes/archiveorg.php 1 location

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