Code Duplication    Length = 10-10 lines in 2 locations

modules/sharedaddy/sharing.php 1 location

@@ 371-380 (lines=10) @@
368
							<td>
369
								<?php
370
								$br = false;
371
								foreach ( $shows as $show ) :
372
									if ( 'index' == $show ) {
373
										$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
374
									} else {
375
										$post_type_object = get_post_type_object( $show );
376
										$label = $post_type_object->labels->name;
377
									}
378
								?>
379
								<?php 
380
								if ( $br ) { 
381
									echo '<br />';
382
								} 
383
								?>

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

@@ 587-596 (lines=10) @@
584
			$shows = array_values( get_post_types( array( 'public' => true ) ) );
585
			array_unshift( $shows, 'index' );
586
			$global = $this->get_options();
587
			foreach ( $shows as $show ) :
588
				if ( 'index' == $show ) {
589
					$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
590
				} else {
591
					$post_type_object = get_post_type_object( $show );
592
					$label = $post_type_object->labels->name;
593
				}
594
				?>
595
				<?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>
596
				<?php	$br = true; endforeach; ?>
597
		</td>
598
		<?php
599
		/** This action is documented in modules/sharedaddy/sharing.php */