Code Duplication    Length = 6-11 lines in 2 locations

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

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