Code Duplication    Length = 14-18 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

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