Code Duplication    Length = 3-3 lines in 3 locations

modules/sharedaddy/sharing-sources.php 3 locations

@@ 818-820 (lines=3) @@
815
		if ( $this->smart ) {
816
			$share_url = $this->get_share_url( $post->ID );
817
			$display .= sprintf( '<div class="linkedin_button"><script type="in/share" data-url="%s" data-counter="right"></script></div>', esc_url( $share_url ) );
818
		} else {
819
			$display = $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'LinkedIn', 'share to', 'jetpack' ), __( 'Click to share on LinkedIn', 'jetpack' ), 'share=linkedin', 'sharing-linkedin-' . $post->ID );
820
		}
821
822
		/** This filter is already documented in modules/sharedaddy/sharing-sources.php */
823
		if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) {
@@ 1128-1130 (lines=3) @@
1125
		if ( $this->smart ) {
1126
			$share_url = $this->get_share_url( $post->ID );
1127
			return '<div class="googleplus1_button"><div class="g-plus" data-action="share" data-annotation="bubble" data-href="' . esc_url( $share_url ) . '"></div></div>';
1128
		} else {
1129
			return $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Google', 'share to', 'jetpack' ), __( 'Click to share on Google+', 'jetpack' ), 'share=google-plus-1', 'sharing-google-' . $post->ID );
1130
		}
1131
	}
1132
1133
	public function get_state() {
@@ 1525-1527 (lines=3) @@
1522
				esc_url( $this->get_external_url( $post ) ),
1523
				esc_attr( $this->get_widget_type() )
1524
			);
1525
		} else {
1526
			$display = $this->get_link( $this->get_process_request_url( $post->ID ), _x( 'Pinterest', 'share to', 'jetpack' ), __( 'Click to share on Pinterest', 'jetpack' ), 'share=pinterest', 'sharing-pinterest-' . $post->ID );
1527
		}
1528
1529
		/** This filter is already documented in modules/sharedaddy/sharing-sources.php */
1530
		if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) {