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 ) {
@@ 1646-1659 (lines=14) @@
1643
			$this->get_process_request_url( $post->ID ), _x( 'Skype', 'share to', 'jetpack' ), __( 'Share on Skype', 'jetpack' ), 'share=skype', 'sharing-skype-' . $post->ID );
1644
	}
1645
1646
	public function process_request( $post, array $post_data ) {
1647
		$skype_url = sprintf(
1648
			'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack',
1649
			rawurlencode( $this->get_share_url( $post->ID ) ),
1650
			'en-US'
1651
		);
1652
1653
		// Record stats
1654
		parent::process_request( $post, $post_data );
1655
1656
		// Redirect to Skype
1657
		wp_redirect( $skype_url );
1658
		die();
1659
	}
1660
1661
	public function display_footer() {
1662
		if ( $this->smart ) :