Code Duplication    Length = 6-11 lines in 2 locations

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

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