Code Duplication    Length = 7-7 lines in 3 locations

modules/sharedaddy/sharing-sources.php 3 locations

@@ 941-947 (lines=7) @@
938
	 *
939
	 * @param \WP_Post $post The current post being viewed.
940
	 */
941
	public function get_amp_display( $post ) {
942
		$attrs = array(
943
			'data-share-endpoint' => esc_url_raw( 'https://reddit.com/submit?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) ) ),
944
		);
945
946
		return $this->build_amp_markup( $attrs );
947
	}
948
949
	public function process_request( $post, array $post_data ) {
950
		$reddit_url = $this->http() . '://reddit.com/submit?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) );
@@ 1771-1777 (lines=7) @@
1768
	 *
1769
	 * @param \WP_Post $post The current post being viewed.
1770
	 */
1771
	public function get_amp_display( $post ) {
1772
		$attrs = array(
1773
			'data-share-endpoint' => esc_url_raw( 'https://getpocket.com/save/?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) ) ),
1774
		);
1775
1776
		return $this->build_amp_markup( $attrs );
1777
	}
1778
1779
	function display_footer() {
1780
		if ( $this->smart ) :
@@ 1826-1832 (lines=7) @@
1823
	 *
1824
	 * @param \WP_Post $post The current post being viewed.
1825
	 */
1826
	public function get_amp_display( $post ) {
1827
		$attrs = array(
1828
			'data-share-endpoint' => esc_url_raw( 'https://telegram.me/share/url?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&text=' . rawurlencode( $this->get_share_title( $post->ID ) ) ),
1829
		);
1830
1831
		return $this->build_amp_markup( $attrs );
1832
	}
1833
1834
	function display_footer() {
1835
		$this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) );