Code Duplication    Length = 14-18 lines in 2 locations

modules/sharedaddy/sharing-sources.php 2 locations

@@ 985-1002 (lines=18) @@
982
		return $display;
983
	}
984
985
	public function process_request( $post, array $post_data ) {
986
987
		$post_link = $this->get_share_url( $post->ID );
988
989
		// Using the same URL as the official button, which is *not* LinkedIn's documented sharing link
990
		// https://www.linkedin.com/cws/share?url={url}&token=&isFramed=false
991
		$linkedin_url = add_query_arg( array(
992
			'url' => rawurlencode( $post_link ),
993
		), 'https://www.linkedin.com/cws/share?token=&isFramed=false' );
994
995
		// Record stats
996
		parent::process_request( $post, $post_data );
997
998
		// Redirect to LinkedIn
999
		wp_redirect( $linkedin_url );
1000
		die();
1001
	}
1002
1003
	public function display_footer() {
1004
		if ( ! $this->smart ) {
1005
			$this->js_dialog( $this->shortname, array( 'width' => 580, 'height' => 450 ) );
@@ 1928-1941 (lines=14) @@
1925
		return $this->build_amp_markup( $attrs );
1926
	}
1927
1928
	public function process_request( $post, array $post_data ) {
1929
		$skype_url = sprintf(
1930
			'https://web.skype.com/share?url=%1$s&lang=%2$s=&source=jetpack',
1931
			rawurlencode( $this->get_share_url( $post->ID ) ),
1932
			'en-US'
1933
		);
1934
1935
		// Record stats
1936
		parent::process_request( $post, $post_data );
1937
1938
		// Redirect to Skype
1939
		wp_redirect( $skype_url );
1940
		die();
1941
	}
1942
1943
	public function display_footer() {
1944
		if ( $this->smart ) :