Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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