Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 140-145 (lines=6) @@
137
138
		$badge = '';
139
		if ( $this->is_wpcom_site() ) {
140
			if ( function_exists( 'is_private_blog' ) && function_exists( 'wpcom_is_coming_soon' ) && is_private_blog() ) {
141
				$badge .= sprintf(
142
					'<span class="site__badge site__badge-private">%s</span>',
143
					wpcom_is_coming_soon() ? esc_html__( 'Coming Soon', 'jetpack' ) : esc_html__( 'Private', 'jetpack' )
144
				);
145
			}
146
147
			if ( function_exists( 'is_redirected_domain' ) && is_redirected_domain( $domain ) ) {
148
				$badge .= '<span class="site__badge site__badge-redirect">' . esc_html__( 'Redirect', 'jetpack' ) . '</span>';
@@ 157-162 (lines=6) @@
154
		}
155
156
		if ( jetpack_is_atomic_site() ) {
157
			if ( function_exists( 'site_is_private' ) && function_exists( 'site_is_coming_soon' ) && site_is_private() ) {
158
				$badge .= sprintf(
159
					'<span class="site__badge site__badge-private">%s</span>',
160
					site_is_coming_soon() ? esc_html__( 'Coming Soon', 'jetpack' ) : esc_html__( 'Private', 'jetpack' )
161
				);
162
			}
163
		}
164
165
		$site_card = '