Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 1159-1166 (lines=8) @@
1156
			);
1157
		}
1158
1159
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
1160
			wp_register_script(
1161
				'jquery.spin',
1162
				Assets::get_file_url_for_environment( '_inc/build/jquery.spin.min.js', '_inc/jquery.spin.js' ),
1163
				array( 'jquery', 'spin' ),
1164
				'1.3'
1165
			);
1166
		}
1167
1168
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
1169
			wp_register_script(
@@ 1177-1185 (lines=9) @@
1174
			);
1175
		}
1176
1177
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
1178
			wp_register_script(
1179
				'jetpack-twitter-timeline',
1180
				Assets::get_file_url_for_environment( '_inc/build/twitter-timeline.min.js', '_inc/twitter-timeline.js' ),
1181
				array( 'jquery' ),
1182
				'4.0.0',
1183
				true
1184
			);
1185
		}
1186
1187
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
1188
			wp_register_script(