Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1697-1707 (lines=11) @@
1694
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1695
	 */
1696
	public static function show_development_mode_notice() {
1697
		if ( ( new Status() )->is_offline_mode() ) {
1698
			$notice = sprintf(
1699
				/* translators: %s is a URL */
1700
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1701
				Redirect::get_url( 'jetpack-support-development-mode' )
1702
			);
1703
1704
			$notice .= ' ' . self::development_mode_trigger_text();
1705
1706
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1707
		}
1708
1709
		// Throw up a notice if using a development version and as for feedback.
1710
		if ( self::is_development_version() ) {
@@ 1717-1722 (lines=6) @@
1714
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1715
		}
1716
		// Throw up a notice if using staging mode
1717
		if ( ( new Status() )->is_staging_site() ) {
1718
			/* translators: %s is a URL */
1719
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1720
1721
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1722
		}
1723
	}
1724
1725
	/**