Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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