Code Duplication    Length = 7-7 lines in 2 locations

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

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