Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1723-1733 (lines=11) @@
1720
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1721
	 */
1722
	public static function show_development_mode_notice() {
1723
		if ( ( new Status() )->is_offline_mode() ) {
1724
			$notice = sprintf(
1725
				/* translators: %s is a URL */
1726
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1727
				Redirect::get_url( 'jetpack-support-development-mode' )
1728
			);
1729
1730
			$notice .= ' ' . self::development_mode_trigger_text();
1731
1732
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1733
		}
1734
1735
		// Throw up a notice if using a development version and as for feedback.
1736
		if ( self::is_development_version() ) {
@@ 1743-1748 (lines=6) @@
1740
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1741
		}
1742
		// Throw up a notice if using staging mode
1743
		if ( ( new Status() )->is_staging_site() ) {
1744
			/* translators: %s is a URL */
1745
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1746
1747
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1748
		}
1749
	}
1750
1751
	/**