Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack.php 2 locations

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