Code Duplication    Length = 3-3 lines in 2 locations

packages/connection/src/Manager.php 2 locations

@@ 334-336 (lines=3) @@
331
		}
332
333
		// No .test or .local domains.
334
		if ( preg_match( '#\.(test|local)$#i', $domain ) ) {
335
			return new WP_Error(
336
				'fail_domain_tld',
337
				sprintf(
338
					/* translators: %1$s is a domain name. */
339
					__(
@@ 349-351 (lines=3) @@
346
		}
347
348
		// No WPCOM subdomains.
349
		if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) {
350
			return new WP_Error(
351
				'fail_subdomain_wpcom',
352
				sprintf(
353
					/* translators: %1$s is a domain name. */
354
					__(