Code Duplication    Length = 14-18 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

@@ 829-846 (lines=18) @@
826
		return $display;
827
	}
828
829
	public function process_request( $post, array $post_data ) {
830
831
		$post_link = $this->get_share_url( $post->ID );
832
833
		// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link
834
		// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false
835
		$linkedin_url = add_query_arg( array(
836
			'url' => rawurlencode( $post_link ),
837
		), 'https://www.linkedin.com/cws/share?token=&isFramed=false' );
838
839
		// Record stats
840
		parent::process_request( $post, $post_data );
841
842
		// Redirect to LinkedIn
843
		wp_redirect( $linkedin_url );
844
		die();
845
	}
846
847
	public function display_footer() {
848
		if ( ! $this->smart ) {
849
			$this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) );
@@ 1747-1760 (lines=14) @@
1744
			$this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID );
1745
	}
1746
1747
	public function process_request( $post, array $post_data ) {
1748
		$skype_url = sprintf(
1749
			'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack',
1750
			rawurlencode( $this->get_share_url( $post->ID ) ),
1751
			'en-US'
1752
		);
1753
1754
		// Record stats
1755
		parent::process_request( $post, $post_data );
1756
1757
		// Redirect to Skype
1758
		wp_redirect( $skype_url );
1759
		die();
1760
	}
1761
1762
	public function display_footer() {
1763
		if ( $this->smart ) :