Code Duplication    Length = 3-3 lines in 3 locations

projects/plugins/jetpack/modules/shortcodes/slideshare.php 3 locations

@@ 90-92 (lines=3) @@
87
	$player = sprintf( "<iframe src='%s' width='%d' height='%d'", esc_url( $source ), $w, $h );
88
89
	// check the frameborder.
90
	if ( ! empty( $attr['fb'] ) || '0' === $attr['fb'] ) {
91
		$player .= " frameborder='" . (int) $attr['fb'] . "'";
92
	}
93
94
	$is_amp = ( class_exists( 'Jetpack_AMP_Support' ) && Jetpack_AMP_Support::is_amp_request() );
95
@@ 98-100 (lines=3) @@
95
96
	if ( ! $is_amp ) {
97
		// check the margin width; if not empty, cast as int.
98
		if ( ( ! empty( $attr['mw'] ) || '0' === $attr['mw'] ) ) {
99
			$player .= " marginwidth='" . (int) $attr['mw'] . "'";
100
		}
101
102
		// check the margin height, if not empty, cast as int.
103
		if ( ( ! empty( $attr['mh'] ) || '0' === $attr['mh'] ) ) {
@@ 103-105 (lines=3) @@
100
		}
101
102
		// check the margin height, if not empty, cast as int.
103
		if ( ( ! empty( $attr['mh'] ) || '0' === $attr['mh'] ) ) {
104
			$player .= " marginheight='" . (int) $attr['mh'] . "'";
105
		}
106
	}
107
108
	if ( ! empty( $attr['style'] ) ) {