Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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