Code Duplication    Length = 3-3 lines in 2 locations

modules/subscriptions.php 1 location

@@ 872-874 (lines=3) @@
869
		echo $args['before_widget'];
870
871
		// Only show the title if there actually is a title
872
		if( ! empty( $instance['title'] ) ) {
873
			echo $args['before_title'] . esc_attr( $instance['title'] ) . $args['after_title'] . "\n";
874
		}
875
876
		$referer = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
877

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

@@ 216-218 (lines=3) @@
213
		$html = apply_filters( 'jetpack_social_media_icons_widget_array', $html );
214
		ksort( $html );
215
		$html = '<ul><li>' . join( '</li><li>', $html ) . '</li></ul>';
216
		if ( ! empty( $instance['title'] ) ) {
217
			$html = $args['before_title'] . esc_html( $instance['title'] ) . $args['after_title'] . $html;
218
		}
219
		$html = $args['before_widget'] . $html . $args['after_widget'];
220
221
		/** This action is documented in modules/widgets/gravatar-profile.php */