Code Duplication    Length = 6-11 lines in 2 locations

projects/plugins/jetpack/class.jetpack.php 2 locations

@@ 1846-1856 (lines=11) @@
1843
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1844
	 */
1845
	public static function show_development_mode_notice() {
1846
		if ( ( new Status() )->is_offline_mode() ) {
1847
			$notice = sprintf(
1848
				/* translators: %s is a URL */
1849
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1850
				Redirect::get_url( 'jetpack-support-development-mode' )
1851
			);
1852
1853
			$notice .= ' ' . self::development_mode_trigger_text();
1854
1855
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1856
		}
1857
1858
		// Throw up a notice if using a development version and as for feedback.
1859
		if ( self::is_development_version() ) {
@@ 1866-1871 (lines=6) @@
1863
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1864
		}
1865
		// Throw up a notice if using staging mode
1866
		if ( ( new Status() )->is_staging_site() ) {
1867
			/* translators: %s is a URL */
1868
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1869
1870
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1871
		}
1872
	}
1873
1874
	/**