Code Duplication    Length = 10-10 lines in 2 locations

modules/sharedaddy/sharing.php 1 location

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

modules/likes.php 1 location

@@ 418-427 (lines=10) @@
415
				$shows = array_values( get_post_types( array( 'public' => true ) ) );
416
				array_unshift( $shows, 'index' );
417
				$global = $this->get_options();
418
				foreach ( $shows as $show ) :
419
					if ( 'index' == $show ) {
420
						$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
421
					} else {
422
						$post_type_object = get_post_type_object( $show );
423
						$label = $post_type_object->labels->name;
424
					}
425
			?>
426
				<?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>
427
			<?php	$br = true; endforeach; ?>
428
		</td>
429
		<?php
430
			/** This action is documented in modules/sharedaddy/sharing.php */