Code Duplication    Length = 3-3 lines in 2 locations

packages/connection/src/Manager.php 2 locations

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