Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/social-media-icons.php 1 location

@@ 185-187 (lines=3) @@
182
		$html = apply_filters( 'jetpack_social_media_icons_widget_array', $html );
183
		ksort( $html );
184
		$html = '<ul><li>' . join( '</li><li>', $html ) . '</li></ul>';
185
		if ( ! empty( $instance['title'] ) ) {
186
			$html = $args['before_title'] . esc_html( $instance['title'] ) . $args['after_title'] . $html;
187
		}
188
		$html = $args['before_widget'] . $html . $args['after_widget'];
189
190
		/** This action is documented in modules/widgets/gravatar-profile.php */

modules/subscriptions.php 1 location

@@ 832-834 (lines=3) @@
829
		echo $args['before_widget'];
830
831
		// Only show the title if there actually is a title
832
		if( ! empty( $instance['title'] ) ) {
833
			echo $args['before_title'] . esc_attr( $instance['title'] ) . $args['after_title'] . "\n";
834
		}
835
836
		$referer = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
837