Code Duplication    Length = 6-11 lines in 2 locations

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

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