Code Duplication    Length = 3-3 lines in 3 locations

class.jetpack.php 3 locations

@@ 756-758 (lines=3) @@
753
	 * @return null
754
	 */
755
	public function register_assets() {
756
		if ( ! wp_script_is( 'spin', 'registered' ) ) {
757
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
758
		}
759
760
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
761
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
@@ 760-762 (lines=3) @@
757
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
758
		}
759
760
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
761
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
762
		}
763
764
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
765
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
@@ 768-770 (lines=3) @@
765
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
766
		}
767
768
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
769
			wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/twitter-timeline.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true );
770
		}
771
772
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
773
			wp_register_script( 'jetpack-facebook-embed', plugins_url( '_inc/facebook-embed.js', __FILE__ ), array( 'jquery' ), null, true );