Code Duplication    Length = 6-11 lines in 2 locations

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

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