Code Duplication    Length = 10-10 lines in 2 locations

modules/likes/jetpack-likes-settings.php 1 location

@@ 598-607 (lines=10) @@
595
			$shows = array_values( get_post_types( array( 'public' => true ) ) );
596
			array_unshift( $shows, 'index' );
597
			$global = $this->get_options();
598
			foreach ( $shows as $show ) :
599
				if ( 'index' == $show ) {
600
					$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
601
				} else {
602
					$post_type_object = get_post_type_object( $show );
603
					$label = $post_type_object->labels->name;
604
				}
605
				?>
606
				<?php if ( $br ) echo '<br />'; ?><label><input type="checkbox"<?php checked( in_array( $show, $global['show'] ) ); ?> name="show[]" value="<?php echo esc_attr( $show ); ?>" /> <?php echo esc_html( $label ); ?></label>
607
				<?php	$br = true; endforeach; ?>
608
		</td>
609
		<?php
610
		/** This action is documented in modules/sharedaddy/sharing.php */

modules/sharedaddy/sharing.php 1 location

@@ 387-396 (lines=10) @@
384
							<td>
385
								<?php
386
								$br = false;
387
								foreach ( $shows as $show ) :
388
									if ( 'index' == $show ) {
389
										$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
390
									} else {
391
										$post_type_object = get_post_type_object( $show );
392
										$label = $post_type_object->labels->name;
393
									}
394
								?>
395
								<?php
396
								if ( $br ) {
397
									echo '<br />';
398
								}
399
								?>