Code Duplication    Length = 3-4 lines in 2 locations

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

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

class.jetpack-gutenberg.php 1 location

@@ 577-579 (lines=3) @@
574
		}
575
576
		// Required for Analytics. See _inc/lib/admin-pages/class.jetpack-admin-page.php.
577
		if ( ! Jetpack::is_development_mode() && Jetpack::is_active() ) {
578
			wp_enqueue_script( 'jp-tracks', '//stats.wp.com/w.js', array(), gmdate( 'YW' ), true );
579
		}
580
581
		$rtl        = is_rtl() ? '.rtl' : '';
582
		$beta       = Constants::is_true( 'JETPACK_BETA_BLOCKS' ) ? '-beta' : '';