Code Duplication    Length = 3-3 lines in 3 locations

class.jetpack.php 3 locations

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