Code Duplication    Length = 4-4 lines in 2 locations

projects/plugins/jetpack/modules/simple-payments/simple-payments.php 1 location

@@ 138-141 (lines=4) @@
135
		}
136
137
		// For WPCOM sites
138
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) {
139
			$site_id = $this->get_blog_id();
140
			return has_any_blog_stickers( array( 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id );
141
		}
142
143
		// For all Jetpack sites
144
		return Jetpack::is_active() && Jetpack_Plan::supports( 'simple-payments');

projects/plugins/jetpack/modules/memberships/class-jetpack-memberships.php 1 location

@@ 450-453 (lines=4) @@
447
	 */
448
	public static function is_supported_jetpack_recurring_payments() {
449
		// For WPCOM sites.
450
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM && function_exists( 'has_any_blog_stickers' ) ) {
451
			$site_id = get_current_blog_id();
452
			return has_any_blog_stickers( array( 'personal-plan', 'premium-plan', 'business-plan', 'ecommerce-plan' ), $site_id );
453
		}
454
		// For Jetpack sites.
455
		return (
456
			Jetpack::is_active() &&