Code Duplication    Length = 3-4 lines in 2 locations

_inc/lib/admin-pages/class.jetpack-react-page.php 1 location

@@ 165-168 (lines=4) @@
162
		}
163
164
165
		if ( ! Jetpack::is_development_mode() && Jetpack::is_active() ) {
166
			// Required for Analytics.
167
			wp_enqueue_script( 'jp-tracks', '//stats.wp.com/w.js', array(), gmdate( 'YW' ), true );
168
		}
169
170
		// Add objects to be passed to the initial state of the app.
171
		wp_localize_script( 'react-plugin', 'Initial_State', $this->get_initial_state() );

class.jetpack-gutenberg.php 1 location

@@ 584-586 (lines=3) @@
581
		}
582
583
		// Required for Analytics. See _inc/lib/admin-pages/class.jetpack-admin-page.php.
584
		if ( ! Jetpack::is_development_mode() && Jetpack::is_active() ) {
585
			wp_enqueue_script( 'jp-tracks', '//stats.wp.com/w.js', array(), gmdate( 'YW' ), true );
586
		}
587
588
		$rtl        = is_rtl() ? '.rtl' : '';
589
		$beta       = Constants::is_true( 'JETPACK_BETA_BLOCKS' ) ? '-beta' : '';