Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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