Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 1185-1192 (lines=8) @@
1182
			);
1183
		}
1184
1185
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
1186
			wp_register_script(
1187
				'jquery.spin',
1188
				Assets::get_file_url_for_environment( '_inc/build/jquery.spin.min.js', '_inc/jquery.spin.js' ),
1189
				array( 'jquery', 'spin' ),
1190
				'1.3'
1191
			);
1192
		}
1193
1194
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
1195
			wp_register_script(
@@ 1203-1211 (lines=9) @@
1200
			);
1201
		}
1202
1203
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
1204
			wp_register_script(
1205
				'jetpack-twitter-timeline',
1206
				Assets::get_file_url_for_environment( '_inc/build/twitter-timeline.min.js', '_inc/twitter-timeline.js' ),
1207
				array( 'jquery' ),
1208
				'4.0.0',
1209
				true
1210
			);
1211
		}
1212
1213
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
1214
			wp_register_script(