Code Duplication    Length = 9-9 lines in 2 locations

src/wp-admin/custom-header.php 2 locations

@@ 1126-1134 (lines=9) @@
1123
		}
1124
		$max_width = max( $max_width, $theme_width );
1125
1126
		if ( $has_flex_height && ( ! $has_flex_width || $width > $max_width ) ) {
1127
			$dst['dst_height'] = absint( $height * ( $max_width / $width ) );
1128
		}
1129
		elseif ( $has_flex_height && $has_flex_width ) {
1130
			$dst['dst_height'] = $height;
1131
		}
1132
		else {
1133
			$dst['dst_height'] = $theme_height;
1134
		}
1135
1136
		if ( $has_flex_width && ( ! $has_flex_height || $width > $max_width ) ) {
1137
			$dst['dst_width'] = absint( $width * ( $max_width / $width ) );
@@ 1136-1144 (lines=9) @@
1133
			$dst['dst_height'] = $theme_height;
1134
		}
1135
1136
		if ( $has_flex_width && ( ! $has_flex_height || $width > $max_width ) ) {
1137
			$dst['dst_width'] = absint( $width * ( $max_width / $width ) );
1138
		}
1139
		elseif ( $has_flex_width && $has_flex_height ) {
1140
			$dst['dst_width'] = $width;
1141
		}
1142
		else {
1143
			$dst['dst_width'] = $theme_width;
1144
		}
1145
1146
		return $dst;
1147
	}