Code Duplication    Length = 3-3 lines in 3 locations

modules/sharedaddy/sharing-sources.php 3 locations

@@ 817-819 (lines=3) @@
814
		if ( $this->smart ) {
815
			$share_url = $this->get_share_url( $post->ID );
816
			$display .= sprintf( '<div class="linkedin_button"><script type="in/share" data-url="%s" data-counter="right"></script></div>', esc_url( $share_url ) );
817
		} else {
818
			$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 );
819
		}
820
821
		/** This filter is already documented in modules/sharedaddy/sharing-sources.php */
822
		if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) {
@@ 1127-1129 (lines=3) @@
1124
		if ( $this->smart ) {
1125
			$share_url = $this->get_share_url( $post->ID );
1126
			return '<div class="googleplus1_button"><div class="g-plus" data-action="share" data-annotation="bubble" data-href="' . esc_url( $share_url ) . '"></div></div>';
1127
		} else {
1128
			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 );
1129
		}
1130
	}
1131
1132
	public function get_state() {
@@ 1524-1526 (lines=3) @@
1521
				esc_url( $this->get_external_url( $post ) ),
1522
				esc_attr( $this->get_widget_type() )
1523
			);
1524
		} else {
1525
			$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 );
1526
		}
1527
1528
		/** This filter is already documented in modules/sharedaddy/sharing-sources.php */
1529
		if ( apply_filters( 'jetpack_register_post_for_share_counts', true, $post->ID, 'linkedin' ) ) {