Code Duplication    Length = 14-18 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

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