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.
@@ 557-563 (lines=7) @@
554
	/**
555
	 * Check if Jetpack version is 'stable' version.
556
	 */
557
	public static function is_on_stable() {
558
		$branch_and_section = self::get_branch_and_section();
559
		if ( empty( $branch_and_section[0] ) || 'stable' === $branch_and_section[0] ) {
560
			return true;
561
		}
562
		return false;
563
	}
564
565
	/**
566
	 * Check if Jetpack active version is a tag version.