Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-data.php 2 locations

@@ 125-127 (lines=3) @@
122
		}
123
124
		// No .test or .local domains
125
		if ( preg_match( '#\.(test|local)$#i', $domain ) ) {
126
			return new WP_Error( 'fail_domain_tld', sprintf( __( 'Domain `%1$s` just failed is_usable_domain check as it uses an invalid top level domain.', 'jetpack' ), $domain ) );
127
		}
128
129
		// No WPCOM subdomains
130
		if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) {
@@ 130-132 (lines=3) @@
127
		}
128
129
		// No WPCOM subdomains
130
		if ( preg_match( '#\.wordpress\.com$#i', $domain ) ) {
131
			return new WP_Error( 'fail_subdomain_wpcom', sprintf( __( 'Domain `%1$s` just failed is_usable_domain check as it is a subdomain of WordPress.com.', 'jetpack' ), $domain ) );
132
		}
133
134
		// If PHP was compiled without support for the Filter module (very edge case)
135
		if ( ! function_exists( 'filter_var' ) ) {