Code Duplication    Length = 6-11 lines in 2 locations

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

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