Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1742-1752 (lines=11) @@
1739
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode
1740
	 */
1741
	public static function show_development_mode_notice() {
1742
		if ( ( new Status() )->is_development_mode() ) {
1743
			$notice = sprintf(
1744
				/* translators: %s is a URL */
1745
				__( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ),
1746
				Redirect::get_url( 'jetpack-support-development-mode' )
1747
			);
1748
1749
			$notice .= ' ' . self::development_mode_trigger_text();
1750
1751
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1752
		}
1753
1754
		// Throw up a notice if using a development version and as for feedback.
1755
		if ( self::is_development_version() ) {
@@ 1762-1767 (lines=6) @@
1759
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1760
		}
1761
		// Throw up a notice if using staging mode
1762
		if ( ( new Status() )->is_staging_site() ) {
1763
			/* translators: %s is a URL */
1764
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1765
1766
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1767
		}
1768
	}
1769
1770
	/**