Code Duplication    Length = 6-11 lines in 2 locations

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

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