Code Duplication    Length = 3-3 lines in 3 locations

class.jetpack.php 3 locations

@@ 742-744 (lines=3) @@
739
	 * @return null
740
	 */
741
	public function register_assets() {
742
		if ( ! wp_script_is( 'spin', 'registered' ) ) {
743
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
744
		}
745
746
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
747
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
@@ 746-748 (lines=3) @@
743
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
744
		}
745
746
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
747
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
748
		}
749
750
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
751
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
@@ 754-756 (lines=3) @@
751
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
752
		}
753
754
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
755
			wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/twitter-timeline.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true );
756
		}
757
758
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
759
			wp_register_script( 'jetpack-facebook-embed', plugins_url( '_inc/facebook-embed.js', __FILE__ ), array( 'jquery' ), null, true );