Code Duplication    Length = 6-11 lines in 2 locations

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

@@ 1789-1799 (lines=11) @@
1786
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1787
	 */
1788
	public static function show_development_mode_notice() {
1789
		if ( ( new Status() )->is_offline_mode() ) {
1790
			$notice = sprintf(
1791
				/* translators: %s is a URL */
1792
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1793
				Redirect::get_url( 'jetpack-support-development-mode' )
1794
			);
1795
1796
			$notice .= ' ' . self::development_mode_trigger_text();
1797
1798
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1799
		}
1800
1801
		// Throw up a notice if using a development version and as for feedback.
1802
		if ( self::is_development_version() ) {
@@ 1809-1814 (lines=6) @@
1806
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1807
		}
1808
		// Throw up a notice if using staging mode
1809
		if ( ( new Status() )->is_staging_site() ) {
1810
			/* translators: %s is a URL */
1811
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1812
1813
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1814
		}
1815
	}
1816
1817
	/**