Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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