Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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