Code Duplication    Length = 14-18 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

@@ 842-859 (lines=18) @@
839
		return $display;
840
	}
841
842
	public function process_request( $post, array $post_data ) {
843
844
		$post_link = $this->get_share_url( $post->ID );
845
846
		// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link
847
		// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false
848
		$linkedin_url = add_query_arg( array(
849
			'url' => rawurlencode( $post_link ),
850
		), 'https://www.linkedin.com/cws/share?token=&isFramed=false' );
851
852
		// Record stats
853
		parent::process_request( $post, $post_data );
854
855
		// Redirect to LinkedIn
856
		wp_redirect( $linkedin_url );
857
		die();
858
	}
859
860
	public function display_footer() {
861
		if ( ! $this->smart ) {
862
			$this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) );
@@ 1762-1775 (lines=14) @@
1759
			$this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Click to share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID );
1760
	}
1761
1762
	public function process_request( $post, array $post_data ) {
1763
		$skype_url = sprintf(
1764
			'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack',
1765
			rawurlencode( $this->get_share_url( $post->ID ) ),
1766
			'en-US'
1767
		);
1768
1769
		// Record stats
1770
		parent::process_request( $post, $post_data );
1771
1772
		// Redirect to Skype
1773
		wp_redirect( $skype_url );
1774
		die();
1775
	}
1776
1777
	public function display_footer() {
1778
		if ( $this->smart ) :