Code Duplication    Length = 3-3 lines in 3 locations

modules/sharedaddy/sharing-sources.php 3 locations

@@ 793-795 (lines=3) @@
790
		if ( $this->smart ) {
791
			$share_url = $this->get_share_url( $post->ID );
792
			$display .= sprintf( '<div class="linkedin_button"><script type="in/share" data-url="%s" data-counter="right"></script></div>', esc_url( $share_url ) );
793
		} else {
794
			$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 );
795
		}
796
797
		/** This filter is already documented in modules/sharedaddy/sharing-sources.php */
798
		if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) {
@@ 1086-1088 (lines=3) @@
1083
		if ( $this->smart ) {
1084
			$share_url = $this->get_share_url( $post->ID );
1085
			return '<div class="googleplus1_button"><div class="g-plus" data-action="share" data-annotation="bubble" data-href="' . esc_url( $share_url ) . '"></div></div>';
1086
		} else {
1087
			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 );
1088
		}
1089
	}
1090
1091
	public function get_state() {
@@ 1468-1470 (lines=3) @@
1465
				esc_url( $this->get_external_url( $post ) ),
1466
				esc_attr( $this->get_widget_type() )
1467
			);
1468
		} else {
1469
			$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 );
1470
		}
1471
1472
		/** This filter is already documented in modules/sharedaddy/sharing-sources.php */
1473
		if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) {