Code Duplication    Length = 6-11 lines in 2 locations

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

@@ 1821-1831 (lines=11) @@
1818
	 * Mirrors the checks made in Automattic\Jetpack\Status->is_offline_mode
1819
	 */
1820
	public static function show_development_mode_notice() {
1821
		if ( ( new Status() )->is_offline_mode() ) {
1822
			$notice = sprintf(
1823
				/* translators: %s is a URL */
1824
				__( 'In <a href="%s" target="_blank">Offline Mode</a>:', 'jetpack' ),
1825
				Redirect::get_url( 'jetpack-support-development-mode' )
1826
			);
1827
1828
			$notice .= ' ' . self::development_mode_trigger_text();
1829
1830
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1831
		}
1832
1833
		// Throw up a notice if using a development version and as for feedback.
1834
		if ( self::is_development_version() ) {
@@ 1841-1846 (lines=6) @@
1838
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1839
		}
1840
		// Throw up a notice if using staging mode
1841
		if ( ( new Status() )->is_staging_site() ) {
1842
			/* translators: %s is a URL */
1843
			$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) );
1844
1845
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1846
		}
1847
	}
1848
1849
	/**