Code Duplication    Length = 3-3 lines in 3 locations

class.jetpack.php 3 locations

@@ 876-878 (lines=3) @@
873
	 * @return null
874
	 */
875
	public function register_assets() {
876
		if ( ! wp_script_is( 'spin', 'registered' ) ) {
877
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
878
		}
879
880
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
881
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
@@ 880-882 (lines=3) @@
877
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
878
		}
879
880
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
881
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
882
		}
883
884
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
885
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
@@ 888-890 (lines=3) @@
885
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
886
		}
887
888
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
889
			wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/twitter-timeline.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true );
890
		}
891
892
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
893
			wp_register_script( 'jetpack-facebook-embed', plugins_url( '_inc/facebook-embed.js', __FILE__ ), array( 'jquery' ), null, true );