Code Duplication    Length = 14-18 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

@@ 806-823 (lines=18) @@
803
		return $display;
804
	}
805
806
	public function process_request( $post, array $post_data ) {
807
808
		$post_link = $this->get_share_url( $post->ID );
809
810
		// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link
811
		// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false
812
813
		$linkedin_url = add_query_arg( array(
814
			'url' => rawurlencode( $post_link ),
815
		), 'https://www.linkedin.com/cws/share?token=&isFramed=false' );
816
817
		// Record stats
818
		parent::process_request( $post, $post_data );
819
820
		// Redirect to LinkedIn
821
		wp_redirect( $linkedin_url );
822
		die();
823
	}
824
825
	public function display_footer() {
826
		if ( !$this->smart ) {
@@ 1689-1702 (lines=14) @@
1686
			$this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID );
1687
	}
1688
1689
	public function process_request( $post, array $post_data ) {
1690
		$skype_url = sprintf(
1691
			'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack',
1692
			rawurlencode( $this->get_share_url( $post->ID ) ),
1693
			'en-US'
1694
		);
1695
1696
		// Record stats
1697
		parent::process_request( $post, $post_data );
1698
1699
		// Redirect to Skype
1700
		wp_redirect( $skype_url );
1701
		die();
1702
	}
1703
1704
	public function display_footer() {
1705
		if ( $this->smart ) :