Code Duplication    Length = 6-11 lines in 2 locations

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

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