Code Duplication    Length = 6-11 lines in 2 locations

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

@@ 1751-1761 (lines=11) @@
1748
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1749
	 */
1750
	public static function show_development_mode_notice() {
1751
		if ( ( new Status() )->is_offline_mode() ) {
1752
			$notice = sprintf(
1753
				/* translators: %s is a URL */
1754
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1755
				Redirect::get_url( 'jetpack-support-development-mode' )
1756
			);
1757
1758
			$notice .= ' ' . self::development_mode_trigger_text();
1759
1760
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1761
		}
1762
1763
		// Throw up a notice if using a development version and as for feedback.
1764
		if ( self::is_development_version() ) {
@@ 1771-1776 (lines=6) @@
1768
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1769
		}
1770
		// Throw up a notice if using staging mode
1771
		if ( ( new Status() )->is_staging_site() ) {
1772
			/* translators: %s is a URL */
1773
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1774
1775
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1776
		}
1777
	}
1778
1779
	/**