Code Duplication    Length = 5-5 lines in 2 locations

modules/search/class.jetpack-search-widget.php 2 locations

@@ 277-281 (lines=5) @@
274
				<label>
275
					<?php esc_html_e( 'Sort by', 'jetpack' ); ?>
276
					<select class="jetpack-search-sort">
277
						<?php foreach ( $this->get_sort_types() as $sort => $label ) { ?>
278
							<option value="<?php echo esc_attr( $sort ); ?>" <?php selected( $current_sort, $sort ); ?>>
279
								<?php echo esc_html( $label ); ?>
280
							</option>
281
						<?php } ?>
282
					</select>
283
				</label>
284
			</div>
@@ 538-542 (lines=5) @@
535
					<select
536
						name="<?php echo esc_attr( $this->get_field_name( 'sort' ) ); ?>"
537
						class="widefat jetpack-search-filters-widget__sort-order">
538
						<?php foreach ( $this->get_sort_types() as $sort_type => $label ) { ?>
539
							<option value="<?php echo esc_attr( $sort_type ); ?>" <?php selected( $sort, $sort_type ); ?>>
540
								<?php echo esc_html( $label ); ?>
541
							</option>
542
						<?php } ?>
543
					</select>
544
				</label>
545
			</p>