Code Duplication    Length = 7-10 lines in 2 locations

lib/class-options.php 2 locations

@@ 613-619 (lines=7) @@
610
	 *
611
	 * @param array $tags The global tags to be posted.
612
	 */
613
	public function global_tags_render( $tags ) {
614
		WP2D_Helpers::arr_to_str( $tags );
615
		?>
616
		<input type="text" class="wp2dtags" name="wp_to_diaspora_settings[global_tags]" value="<?php echo esc_attr( $tags ); ?>" placeholder="<?php esc_attr_e( 'Global tags', 'wp-to-diaspora' ); ?>" class="regular-text">
617
		<p class="description"><?php esc_html_e( 'Custom tags to add to all posts being posted to diaspora*.', 'wp-to-diaspora' ); ?></p>
618
		<?php
619
	}
620
621
	/**
622
	 * Render the "Custom tags" field.
@@ 626-635 (lines=10) @@
623
	 *
624
	 * @param array $tags The custom tags to be posted.
625
	 */
626
	public function custom_tags_render( $tags ) {
627
		WP2D_Helpers::arr_to_str( $tags );
628
		?>
629
		<label title="<?php esc_attr_e( 'Custom tags to add to this post when it\'s posted to diaspora*.', 'wp-to-diaspora' ); ?>">
630
			<?php esc_html_e( 'Custom tags', 'wp-to-diaspora' ); ?>
631
			<input type="text" class="wp2dtags" name="wp_to_diaspora_settings[custom_tags]" value="<?php echo esc_attr( $tags ); ?>" class="widefat">
632
		</label>
633
		<p class="description"><?php esc_html_e( 'Separate tags with commas' ); ?></p>
634
		<?php
635
	}
636
637
	/**
638
	 * Render the "Aspects" and "Services" checkboxes.