Code Duplication    Length = 6-11 lines in 2 locations

class.jetpack.php 2 locations

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