Code Duplication    Length = 3-3 lines in 3 locations

class.jetpack.php 3 locations

@@ 778-780 (lines=3) @@
775
	 * @return null
776
	 */
777
	public function register_assets() {
778
		if ( ! wp_script_is( 'spin', 'registered' ) ) {
779
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
780
		}
781
782
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
783
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
@@ 782-784 (lines=3) @@
779
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
780
		}
781
782
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
783
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
784
		}
785
786
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
787
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
@@ 790-792 (lines=3) @@
787
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
788
		}
789
790
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
791
			wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/twitter-timeline.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true );
792
		}
793
794
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
795
			wp_register_script( 'jetpack-facebook-embed', plugins_url( '_inc/facebook-embed.js', __FILE__ ), array( 'jquery' ), null, true );