Code Duplication    Length = 6-11 lines in 2 locations

projects/plugins/jetpack/class.jetpack.php 2 locations

@@ 1620-1630 (lines=11) @@
1617
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1618
	 */
1619
	public static function show_development_mode_notice() {
1620
		if ( ( new Status() )->is_offline_mode() ) {
1621
			$notice = sprintf(
1622
				/* translators: %s is a URL */
1623
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1624
				Redirect::get_url( 'jetpack-support-development-mode' )
1625
			);
1626
1627
			$notice .= ' ' . self::development_mode_trigger_text();
1628
1629
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1630
		}
1631
1632
		// Throw up a notice if using a development version and as for feedback.
1633
		if ( self::is_development_version() ) {
@@ 1640-1645 (lines=6) @@
1637
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1638
		}
1639
		// Throw up a notice if using staging mode
1640
		if ( ( new Status() )->is_staging_site() ) {
1641
			/* translators: %s is a URL */
1642
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1643
1644
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1645
		}
1646
	}
1647
1648
	/**