Code Duplication    Length = 6-11 lines in 2 locations

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

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