Code Duplication    Length = 10-10 lines in 2 locations

modules/sharedaddy/sharing.php 1 location

@@ 378-387 (lines=10) @@
375
							<td>
376
								<?php
377
								$br = false;
378
								foreach ( $shows as $show ) :
379
									if ( 'index' == $show ) {
380
										$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
381
									} else {
382
										$post_type_object = get_post_type_object( $show );
383
										$label = $post_type_object->labels->name;
384
									}
385
								?>
386
								<?php
387
								if ( $br ) {
388
									echo '<br />';
389
								}
390
								?>

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

@@ 613-622 (lines=10) @@
610
			$shows = array_values( get_post_types( array( 'public' => true ) ) );
611
			array_unshift( $shows, 'index' );
612
			$global = $this->get_options();
613
			foreach ( $shows as $show ) :
614
				if ( 'index' == $show ) {
615
					$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
616
				} else {
617
					$post_type_object = get_post_type_object( $show );
618
					$label = $post_type_object->labels->name;
619
				}
620
				?>
621
				<?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>
622
				<?php	$br = true; endforeach; ?>
623
		</td>
624
		<?php
625
		/** This action is documented in modules/sharedaddy/sharing.php */