Code Duplication    Length = 7-7 lines in 2 locations

includes/class-images-via-imgix.php 2 locations

@@ 303-309 (lines=7) @@
300
		$sizes = [];
301
		foreach ( get_intermediate_image_sizes() as $s ) {
302
			$sizes[ $s ] = [ 'width' => '', 'height' => '', 'crop' => false ];
303
			if ( isset( $theme_image_sizes[ $s ]['width'] ) ) {
304
				// For theme-added sizes
305
				$sizes[ $s ]['width'] = intval( $theme_image_sizes[ $s ]['width'] );
306
			} else {
307
				// For default sizes set in options
308
				$sizes[ $s ]['width'] = get_option( "{$s}_size_w" );
309
			}
310
311
			if ( isset( $theme_image_sizes[ $s ]['height'] ) ) {
312
				// For theme-added sizes
@@ 311-317 (lines=7) @@
308
				$sizes[ $s ]['width'] = get_option( "{$s}_size_w" );
309
			}
310
311
			if ( isset( $theme_image_sizes[ $s ]['height'] ) ) {
312
				// For theme-added sizes
313
				$sizes[ $s ]['height'] = intval( $theme_image_sizes[ $s ]['height'] );
314
			} else {
315
				// For default sizes set in options
316
				$sizes[ $s ]['height'] = get_option( "{$s}_size_h" );
317
			}
318
319
			if ( isset( $theme_image_sizes[ $s ]['crop'] ) ) {
320
				// For theme-added sizes