Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 1086-1093 (lines=8) @@
1083
			);
1084
		}
1085
1086
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
1087
			wp_register_script(
1088
				'jquery.spin',
1089
				Assets::get_file_url_for_environment( '_inc/build/jquery.spin.min.js', '_inc/jquery.spin.js' ),
1090
				array( 'jquery', 'spin' ),
1091
				'1.3'
1092
			);
1093
		}
1094
1095
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
1096
			wp_register_script(
@@ 1104-1112 (lines=9) @@
1101
			);
1102
		}
1103
1104
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
1105
			wp_register_script(
1106
				'jetpack-twitter-timeline',
1107
				Assets::get_file_url_for_environment( '_inc/build/twitter-timeline.min.js', '_inc/twitter-timeline.js' ),
1108
				array( 'jquery' ),
1109
				'4.0.0',
1110
				true
1111
			);
1112
		}
1113
1114
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
1115
			wp_register_script(