Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 1179-1186 (lines=8) @@
1176
			);
1177
		}
1178
1179
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
1180
			wp_register_script(
1181
				'jquery.spin',
1182
				Assets::get_file_url_for_environment( '_inc/build/jquery.spin.min.js', '_inc/jquery.spin.js' ),
1183
				array( 'jquery', 'spin' ),
1184
				'1.3'
1185
			);
1186
		}
1187
1188
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
1189
			wp_register_script(
@@ 1197-1205 (lines=9) @@
1194
			);
1195
		}
1196
1197
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
1198
			wp_register_script(
1199
				'jetpack-twitter-timeline',
1200
				Assets::get_file_url_for_environment( '_inc/build/twitter-timeline.min.js', '_inc/twitter-timeline.js' ),
1201
				array( 'jquery' ),
1202
				'4.0.0',
1203
				true
1204
			);
1205
		}
1206
1207
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
1208
			wp_register_script(