Code Duplication    Length = 6-11 lines in 2 locations

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

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