Code Duplication    Length = 6-11 lines in 2 locations

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

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