Code Duplication    Length = 10-10 lines in 2 locations

modules/sharedaddy/sharing.php 1 location

@@ 357-366 (lines=10) @@
354
						<td>
355
						<?php
356
							$br = false;
357
							foreach ( $shows as $show ) :
358
								if ( 'index' == $show ) {
359
									$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
360
								} else {
361
									$post_type_object = get_post_type_object( $show );
362
									$label = $post_type_object->labels->name;
363
								}
364
						?>
365
							<?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>
366
						<?php	$br = true; endforeach; ?>
367
						</td>
368
					<?php
369
					/**

modules/likes.php 1 location

@@ 433-442 (lines=10) @@
430
				$shows = array_values( get_post_types( array( 'public' => true ) ) );
431
				array_unshift( $shows, 'index' );
432
				$global = $this->get_options();
433
				foreach ( $shows as $show ) :
434
					if ( 'index' == $show ) {
435
						$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
436
					} else {
437
						$post_type_object = get_post_type_object( $show );
438
						$label = $post_type_object->labels->name;
439
					}
440
			?>
441
				<?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>
442
			<?php	$br = true; endforeach; ?>
443
		</td>
444
		<?php
445
			/** This action is documented in modules/sharedaddy/sharing.php */