Code Duplication    Length = 11-11 lines in 2 locations

modules/widgets/search.php 2 locations

@@ 764-774 (lines=11) @@
761
762
			<p class="jetpack-search-filters-widget__post-types-select">
763
				<label><?php esc_html_e( 'Post types to search (minimum of 1):', 'jetpack' ); ?></label>
764
				<?php foreach ( get_post_types( array( 'exclude_from_search' => false ), 'objects' ) as $post_type ) : ?>
765
					<label>
766
						<input
767
							type="checkbox"
768
							value="<?php echo esc_attr( $post_type->name ); ?>"
769
							name="<?php echo esc_attr( $this->get_field_name( 'post_types' ) ); ?>[]"
770
							<?php checked( empty( $instance['post_types'] ) || in_array( $post_type->name, $instance['post_types'] ) ); ?>
771
						/>&nbsp;
772
						<?php echo esc_html( $post_type->label ); ?>
773
					</label>
774
				<?php endforeach; ?>
775
			</p>
776
777
			<p>
@@ 853-863 (lines=11) @@
850
			<!-- Post types control -->
851
			<p class="jetpack-search-filters-widget__post-types-select">
852
				<label><?php esc_html_e( 'Post types to search (minimum of 1):', 'jetpack' ); ?></label>
853
				<?php foreach ( get_post_types( array( 'exclude_from_search' => false ), 'objects' ) as $post_type ) : ?>
854
					<label>
855
						<input
856
							type="checkbox"
857
							value="<?php echo esc_attr( $post_type->name ); ?>"
858
							name="<?php echo esc_attr( $this->get_field_name( 'post_types' ) ); ?>[]"
859
							<?php checked( empty( $instance['post_types'] ) || in_array( $post_type->name, $instance['post_types'], true ) ); ?>
860
						/>&nbsp;
861
						<?php echo esc_html( $post_type->label ); ?>
862
					</label>
863
				<?php endforeach; ?>
864
			</p>
865
866
			<!-- Default sort order control -->