Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

@@ 1702-1712 (lines=11) @@
1699
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode
1700
	 */
1701
	public static function show_development_mode_notice() {
1702
		if ( ( new Status() )->is_development_mode() ) {
1703
			$notice = sprintf(
1704
				/* translators: %s is a URL */
1705
				__( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ),
1706
				Redirect::get_url( 'jetpack-support-development-mode' )
1707
			);
1708
1709
			$notice .= ' ' . self::development_mode_trigger_text();
1710
1711
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1712
		}
1713
1714
		// Throw up a notice if using a development version and as for feedback.
1715
		if ( self::is_development_version() ) {
@@ 1722-1727 (lines=6) @@
1719
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1720
		}
1721
		// Throw up a notice if using staging mode
1722
		if ( ( new Status() )->is_staging_site() ) {
1723
			/* translators: %s is a URL */
1724
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1725
1726
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1727
		}
1728
	}
1729
1730
	/**