Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack.php 2 locations

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