Code Duplication    Length = 5-5 lines in 3 locations

functions.opengraph.php 3 locations

@@ 315-319 (lines=5) @@
312
				$img_height = $image_size[2];
313
			}
314
315
			if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) {
316
				$image['src']    = $image_url;
317
				$image['width']  = $width;
318
				$image['height'] = $height;
319
			}
320
		}
321
	}
322
@@ 329-333 (lines=5) @@
326
		if ( ! empty( $image_dimensions ) ) {
327
			$img_width = $image_dimensions['width'];
328
			$img_height = $image_dimensions['height'];
329
			if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) {
330
				$image['src']    = jetpack_get_site_logo( 'url' );
331
				$image['width']  = $width;
332
				$image['height'] = $height;
333
			}
334
		}
335
	}
336
@@ 361-365 (lines=5) @@
358
			$img_height = $image_size[2];
359
		}
360
361
		if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) {
362
			$image['src']     = $image_url;
363
			$image['width']   = $width;
364
			$image['height']  = $height;
365
		}
366
	}
367
368
	// Finally fall back, blank image