Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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