Code Duplication    Length = 14-18 lines in 2 locations

projects/plugins/jetpack/modules/sharedaddy/sharing-sources.php 2 locations

@@ 1024-1041 (lines=18) @@
1021
		return $display;
1022
	}
1023
1024
	public function process_request( $post, array $post_data ) {
1025
1026
		$post_link = $this->get_share_url( $post->ID );
1027
1028
		// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link
1029
		// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false
1030
		$linkedin_url = add_query_arg( array(
1031
			'url' => rawurlencode( $post_link ),
1032
		), 'https://www.linkedin.com/cws/share?token=&isFramed=false' );
1033
1034
		// Record stats
1035
		parent::process_request( $post, $post_data );
1036
1037
		// Redirect to LinkedIn
1038
		wp_redirect( $linkedin_url );
1039
		die();
1040
	}
1041
1042
	public function display_footer() {
1043
		if ( ! $this->smart ) {
1044
			$this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) );
@@ 2037-2050 (lines=14) @@
2034
		return $this->build_amp_markup( $attrs );
2035
	}
2036
2037
	public function process_request( $post, array $post_data ) {
2038
		$skype_url = sprintf(
2039
			'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack',
2040
			rawurlencode( $this->get_share_url( $post->ID ) ),
2041
			'en-US'
2042
		);
2043
2044
		// Record stats
2045
		parent::process_request( $post, $post_data );
2046
2047
		// Redirect to Skype
2048
		wp_redirect( $skype_url );
2049
		die();
2050
	}
2051
2052
	public function display_footer() {
2053
		if ( $this->smart ) :