Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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