Code Duplication    Length = 3-3 lines in 2 locations

modules/masterbar/admin-menu/class-admin-menu.php 2 locations

@@ 72-74 (lines=3) @@
69
		$domain = ( new Status() )->get_site_suffix();
70
71
		// TODO: Remove once feature has shipped. See jetpack_parent_file().
72
		if ( ! $this->is_api_request && ! defined( 'PHPUNIT_JETPACK_TESTSUITE' ) ) {
73
			$domain = add_query_arg( 'flags', 'nav-unification', $domain );
74
		}
75
76
		// Not needed outside of wp-admin.
77
		if ( ! $this->is_api_request && ( $this->is_wpcom_site() || jetpack_is_atomic_site() ) ) {
@@ 416-418 (lines=3) @@
413
			$parent_file = 'https://wordpress.com/activity-log/' . wp_parse_url( get_home_url(), PHP_URL_HOST );
414
415
			// TODO: Remove once feature has shipped. See reregister_menu_items().
416
			if ( ! $this->is_api_request && ! defined( 'PHPUNIT_JETPACK_TESTSUITE' ) ) {
417
				$parent_file = add_query_arg( 'flags', 'nav-unification', $parent_file );
418
			}
419
		}
420
421
		return $parent_file;