Code Duplication    Length = 7-7 lines in 2 locations

_inc/lib/class.jetpack-photon-image-sizes.php 2 locations

@@ 71-77 (lines=7) @@
68
				'height' => '',
69
				'crop'   => false,
70
			);
71
			if ( isset( $_wp_additional_image_sizes[ $s ]['width'] ) ) {
72
				// For theme-added sizes.
73
				$sizes[ $s ]['width'] = intval( $_wp_additional_image_sizes[ $s ]['width'] );
74
			} else {
75
				// For default sizes set in options.
76
				$sizes[ $s ]['width'] = get_option( "{$s}_size_w" );
77
			}
78
79
			if ( isset( $_wp_additional_image_sizes[ $s ]['height'] ) ) {
80
				// For theme-added sizes.
@@ 79-85 (lines=7) @@
76
				$sizes[ $s ]['width'] = get_option( "{$s}_size_w" );
77
			}
78
79
			if ( isset( $_wp_additional_image_sizes[ $s ]['height'] ) ) {
80
				// For theme-added sizes.
81
				$sizes[ $s ]['height'] = intval( $_wp_additional_image_sizes[ $s ]['height'] );
82
			} else {
83
				// For default sizes set in options.
84
				$sizes[ $s ]['height'] = get_option( "{$s}_size_h" );
85
			}
86
87
			if ( isset( $_wp_additional_image_sizes[ $s ]['crop'] ) ) {
88
				// For theme-added sizes.