Code Duplication    Length = 5-5 lines in 3 locations

functions.opengraph.php 3 locations

@@ 326-330 (lines=5) @@
323
				$img_height = $image_size[2];
324
			}
325
326
			if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) {
327
				$image['src']    = $image_url;
328
				$image['width']  = $width;
329
				$image['height'] = $height;
330
			}
331
		}
332
	}
333
@@ 340-344 (lines=5) @@
337
		if ( ! empty( $image_dimensions ) ) {
338
			$img_width = $image_dimensions['width'];
339
			$img_height = $image_dimensions['height'];
340
			if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) {
341
				$image['src']    = jetpack_get_site_logo( 'url' );
342
				$image['width']  = $width;
343
				$image['height'] = $height;
344
			}
345
		}
346
	}
347
@@ 364-368 (lines=5) @@
361
			$img_height = $image_size[2];
362
		}
363
364
		if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) {
365
			$image['src']     = $image_url;
366
			$image['width']   = $width;
367
			$image['height']  = $height;
368
		}
369
	}
370
371
	// Finally fall back, blank image