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 ) );
@@ 1735-1748 (lines=14) @@
1732
			$this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID );
1733
	}
1734
1735
	public function process_request( $post, array $post_data ) {
1736
		$skype_url = sprintf(
1737
			'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack',
1738
			rawurlencode( $this->get_share_url( $post->ID ) ),
1739
			'en-US'
1740
		);
1741
1742
		// Record stats
1743
		parent::process_request( $post, $post_data );
1744
1745
		// Redirect to Skype
1746
		wp_redirect( $skype_url );
1747
		die();
1748
	}
1749
1750
	public function display_footer() {
1751
		if ( $this->smart ) :