Code Duplication    Length = 6-11 lines in 2 locations

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

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