Code Duplication    Length = 7-7 lines in 3 locations

modules/sharedaddy/sharing-sources.php 3 locations

@@ 946-952 (lines=7) @@
943
	 *
944
	 * @param \WP_Post $post The current post being viewed.
945
	 */
946
	public function get_amp_display( $post ) {
947
		$attrs = array(
948
			'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 ) ) ),
949
		);
950
951
		return $this->build_amp_markup( $attrs );
952
	}
953
954
	public function process_request( $post, array $post_data ) {
955
		$reddit_url = $this->http() . '://reddit.com/submit?url=' . rawurlencode( $this->get_share_url( $post->ID ) ) . '&title=' . rawurlencode( $this->get_share_title( $post->ID ) );
@@ 1833-1839 (lines=7) @@
1830
	 *
1831
	 * @param \WP_Post $post The current post being viewed.
1832
	 */
1833
	public function get_amp_display( $post ) {
1834
		$attrs = array(
1835
			'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 ) ) ),
1836
		);
1837
1838
		return $this->build_amp_markup( $attrs );
1839
	}
1840
1841
	function display_footer() {
1842
		if ( $this->smart ) :
@@ 1901-1907 (lines=7) @@
1898
	 *
1899
	 * @param \WP_Post $post The current post being viewed.
1900
	 */
1901
	public function get_amp_display( $post ) {
1902
		$attrs = array(
1903
			'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 ) ) ),
1904
		);
1905
1906
		return $this->build_amp_markup( $attrs );
1907
	}
1908
1909
	function display_footer() {
1910
		$this->js_dialog( $this->shortname, array( 'width' => 450, 'height' => 450 ) );