Code Duplication    Length = 3-3 lines in 2 locations

packages/connection/src/Manager.php 2 locations

@@ 323-325 (lines=3) @@
320
		}
321
322
		// No .test or .local domains.
323
		if ( preg_match( '#\.(test|local)$#i', $domain ) ) {
324
			return new WP_Error(
325
				'fail_domain_tld',
326
				sprintf(
327
					/* translators: %1$s is a domain name. */
328
					__(
@@ 338-340 (lines=3) @@
335
		}
336
337
		// No WPCOM subdomains.
338
		if ( preg_match( '#\.WordPress\.com$#i', $domain ) ) {
339
			return new WP_Error(
340
				'fail_subdomain_wpcom',
341
				sprintf(
342
					/* translators: %1$s is a domain name. */
343
					__(