Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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