Code Duplication    Length = 6-11 lines in 2 locations

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

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