Code Duplication    Length = 14-18 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

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