Code Duplication    Length = 6-11 lines in 2 locations

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

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