Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1734-1744 (lines=11) @@
1731
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1732
	 */
1733
	public static function show_development_mode_notice() {
1734
		if ( ( new Status() )->is_offline_mode() ) {
1735
			$notice = sprintf(
1736
				/* translators: %s is a URL */
1737
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1738
				Redirect::get_url( 'jetpack-support-development-mode' )
1739
			);
1740
1741
			$notice .= ' ' . self::development_mode_trigger_text();
1742
1743
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1744
		}
1745
1746
		// Throw up a notice if using a development version and as for feedback.
1747
		if ( self::is_development_version() ) {
@@ 1754-1759 (lines=6) @@
1751
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1752
		}
1753
		// Throw up a notice if using staging mode
1754
		if ( ( new Status() )->is_staging_site() ) {
1755
			/* translators: %s is a URL */
1756
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1757
1758
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1759
		}
1760
	}
1761
1762
	/**