Code Duplication    Length = 3-3 lines in 3 locations

class.jetpack.php 3 locations

@@ 720-722 (lines=3) @@
717
	 * @return null
718
	 */
719
	public function register_assets() {
720
		if ( ! wp_script_is( 'spin', 'registered' ) ) {
721
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
722
		}
723
724
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
725
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
@@ 724-726 (lines=3) @@
721
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
722
		}
723
724
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
725
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
726
		}
727
728
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
729
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
@@ 732-734 (lines=3) @@
729
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
730
		}
731
732
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
733
			wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/twitter-timeline.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true );
734
		}
735
736
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
737
			wp_register_script( 'jetpack-facebook-embed', plugins_url( '_inc/facebook-embed.js', __FILE__ ), array( 'jquery' ), null, true );