Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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