Code Duplication    Length = 10-10 lines in 2 locations

includes/classes/class-lsx-schema-utils.php 2 locations

@@ 70-79 (lines=10) @@
67
	 *
68
	 * @return string The user's schema ID.
69
	 */
70
	public static function get_offer_schema_id( $id, $context, $local = false ) {
71
		if ( false === $local ) {
72
			$url = $context->site_url;
73
		} else {
74
			$url = get_permalink( $context->id );
75
		}
76
		$url .= '#/schema/offer/';
77
		$url .= wp_hash( $id . get_the_title( $id ) );
78
		return trailingslashit( $url );
79
	}
80
	/**
81
	 * Retrieve an review Schema ID.
82
	 *
@@ 89-98 (lines=10) @@
86
	 *
87
	 * @return string The user's schema ID.
88
	 */
89
	public static function get_review_schema_id( $id, $context, $local = false ) {
90
		if ( false === $local ) {
91
			$url = $context->site_url;
92
		} else {
93
			$url = get_permalink( $context->id );
94
		}
95
		$url .= '#/schema/review/';
96
		$url .= wp_hash( $id . get_the_title( $id ) );
97
		return trailingslashit( $url );
98
	}
99
	/**
100
	 * Retrieve an Article Schema ID.
101
	 *