Code Duplication    Length = 5-5 lines in 2 locations

modules/widgets/rsslinks-widget.php 2 locations

@@ 116-120 (lines=5) @@
113
		);
114
		echo '<p><label for="' . $this->get_field_id( 'format' ) . '">' . _x( 'Format:', 'Noun', 'jetpack' ) . '
115
		<select class="widefat" id="' . $this->get_field_id( 'format' ) . '" name="' . $this->get_field_name( 'format' ) . '" onchange="if ( this.value == \'text\' ) jQuery( \'#' . $this->get_field_id( 'image-settings' ) . '\' ).fadeOut(); else jQuery( \'#' . $this->get_field_id( 'image-settings' ) . '\' ).fadeIn();">';
116
		foreach ( $formats as $format_option => $label ) {
117
			echo '<option value="' . esc_attr( $format_option ) . '"';
118
			if ( $format_option == $format ) echo ' selected="selected"';
119
			echo '>' . esc_html( $label ) . '</option>' . "\n";
120
		}
121
		echo '</select></label></p>';
122
123
		echo '<div id="' . $this->get_field_id( 'image-settings' ) . '"';
@@ 134-138 (lines=5) @@
131
		);
132
		echo '<p><label for="' . $this->get_field_id( 'imagesize' ) . '">' . esc_html__( 'Image Size:', 'jetpack' ) . '
133
		<select class="widefat" id="' . $this->get_field_id( 'imagesize' ) . '" name="' . $this->get_field_name( 'imagesize' ) . '">';
134
		foreach ( $sizes as $size => $label ) {
135
			echo '<option value="' . esc_attr( $size) . '"';
136
			if ( $size == $image_size ) echo ' selected="selected"';
137
			echo '>' . esc_html( $label ) . '</option>' . "\n";
138
		}
139
		echo '</select></label></p>';
140
141
		$colors = array(