Code Duplication    Length = 6-11 lines in 2 locations

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

@@ 1792-1802 (lines=11) @@
1789
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1790
	 */
1791
	public static function show_development_mode_notice() {
1792
		if ( ( new Status() )->is_offline_mode() ) {
1793
			$notice = sprintf(
1794
				/* translators: %s is a URL */
1795
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1796
				Redirect::get_url( 'jetpack-support-development-mode' )
1797
			);
1798
1799
			$notice .= ' ' . self::development_mode_trigger_text();
1800
1801
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1802
		}
1803
1804
		// Throw up a notice if using a development version and as for feedback.
1805
		if ( self::is_development_version() ) {
@@ 1812-1817 (lines=6) @@
1809
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1810
		}
1811
		// Throw up a notice if using staging mode
1812
		if ( ( new Status() )->is_staging_site() ) {
1813
			/* translators: %s is a URL */
1814
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1815
1816
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1817
		}
1818
	}
1819
1820
	/**