Code Duplication    Length = 7-7 lines in 2 locations

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

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