Code Duplication    Length = 3-3 lines in 2 locations

modules/subscriptions.php 1 location

@@ 813-815 (lines=3) @@
810
		echo $args['before_widget'];
811
812
		// Only show the title if there actually is a title
813
		if( ! empty( $instance['title'] ) ) {
814
			echo $args['before_title'] . esc_attr( $instance['title'] ) . $args['after_title'] . "\n";
815
		}
816
817
		$referer = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
818

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 */