Code Duplication    Length = 3-3 lines in 2 locations

modules/shortcodes/flickr.php 2 locations

@@ 210-212 (lines=3) @@
207
		set_transient( $transient_name, $html, 2592000 ); // 30 days transient.
208
	}
209
210
	if ( ! empty( $atts['w'] ) && is_numeric( $atts['w'] ) ) {
211
		$html = preg_replace( '/(width=\")\d+(\")/', '${1}' . $atts['w'] . '${2}', $html );
212
	}
213
214
	if ( ! empty( $atts['h'] ) && is_numeric( $atts['h'] ) ) {
215
		$html = preg_replace( '/(height=\")\d+(\")/', '${1}' . $atts['h'] . '${2}', $html );
@@ 214-216 (lines=3) @@
211
		$html = preg_replace( '/(width=\")\d+(\")/', '${1}' . $atts['w'] . '${2}', $html );
212
	}
213
214
	if ( ! empty( $atts['h'] ) && is_numeric( $atts['h'] ) ) {
215
		$html = preg_replace( '/(height=\")\d+(\")/', '${1}' . $atts['h'] . '${2}', $html );
216
	}
217
218
	return $html;
219
}