Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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