Code Duplication    Length = 3-3 lines in 2 locations

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

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

modules/subscriptions.php 1 location

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