Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 285-291 (lines=7) @@
282
	/**
283
	 * Returns active plugin slug string (jetpack|jetpack-dev).
284
	 */
285
	public static function get_plugin_slug() {
286
		$installed = self::get_branch_and_section();
287
		if ( empty( $installed ) || 'stable' === $installed[1] || 'tags' === $installed[1] ) {
288
			return 'jetpack';
289
		}
290
		return JETPACK_DEV_PLUGIN_SLUG;
291
	}
292
293
	/**
294
	 * Handler ran for Jetpack Beta plugin deactivation hook.
@@ 561-567 (lines=7) @@
558
	/**
559
	 * Check if Jetpack version is 'stable' version.
560
	 */
561
	public static function is_on_stable() {
562
		$branch_and_section = self::get_branch_and_section();
563
		if ( empty( $branch_and_section[0] ) || 'stable' === $branch_and_section[0] ) {
564
			return true;
565
		}
566
		return false;
567
	}
568
569
	/**
570
	 * Check if Jetpack active version is a tag version.