Code Duplication    Length = 6-6 lines in 2 locations

projects/plugins/beta/jetpack-beta-admin.php 2 locations

@@ 274-279 (lines=6) @@
271
272
		$branch_class    = 'branch-card';
273
		list( $current_branch, $current_section ) = Jetpack_Beta::get_branch_and_section();
274
		if ( $current_branch === $branch_key && $current_section === $section ) {
275
			$action       = __( 'Active', 'jetpack-beta' );
276
			$branch_class = 'branch-card-active';
277
		} else {
278
			$action = self::activate_button( $branch_key, $section );
279
		}
280
281
		$header = str_replace( '-', ' ', $header );
282
		$header = str_replace( '_', ' / ', $header );
@@ 315-320 (lines=6) @@
312
313
		$className = 'tag-card';
314
		list( $current_branch, $current_section ) = Jetpack_Beta::get_branch_and_section();
315
		if ( $current_branch === $tag && $current_section === $section ) {
316
			$action    = __( 'Active', 'jetpack-beta' );
317
			$className = 'tag-card-active';
318
		} else {
319
			$action = self::activate_button( $tag, $section );
320
		}
321
322
		$header = str_replace( '-', ' ', $header );
323
		$header = str_replace( '_', ' / ', $header );