Code Duplication    Length = 3-3 lines in 3 locations

class.jetpack.php 3 locations

@@ 845-847 (lines=3) @@
842
	 * @return null
843
	 */
844
	public function register_assets() {
845
		if ( ! wp_script_is( 'spin', 'registered' ) ) {
846
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
847
		}
848
849
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
850
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
@@ 849-851 (lines=3) @@
846
			wp_register_script( 'spin', plugins_url( '_inc/spin.js', JETPACK__PLUGIN_FILE ), false, '1.3' );
847
		}
848
849
		if ( ! wp_script_is( 'jquery.spin', 'registered' ) ) {
850
			wp_register_script( 'jquery.spin', plugins_url( '_inc/jquery.spin.js', JETPACK__PLUGIN_FILE ) , array( 'jquery', 'spin' ), '1.3' );
851
		}
852
853
		if ( ! wp_script_is( 'jetpack-gallery-settings', 'registered' ) ) {
854
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
@@ 857-859 (lines=3) @@
854
			wp_register_script( 'jetpack-gallery-settings', plugins_url( '_inc/gallery-settings.js', JETPACK__PLUGIN_FILE ), array( 'media-views' ), '20121225' );
855
		}
856
857
		if ( ! wp_script_is( 'jetpack-twitter-timeline', 'registered' ) ) {
858
			wp_register_script( 'jetpack-twitter-timeline', plugins_url( '_inc/twitter-timeline.js', JETPACK__PLUGIN_FILE ) , array( 'jquery' ), '4.0.0', true );
859
		}
860
861
		if ( ! wp_script_is( 'jetpack-facebook-embed', 'registered' ) ) {
862
			wp_register_script( 'jetpack-facebook-embed', plugins_url( '_inc/facebook-embed.js', __FILE__ ), array( 'jquery' ), null, true );