Code Duplication    Length = 3-11 lines in 2 locations

_inc/lib/debugger/class-jetpack-cxn-tests.php 1 location

@@ 83-85 (lines=3) @@
80
		$status = new Status();
81
		if ( $this->helper_is_jetpack_connected() ) {
82
			$result = self::passing_test( $name );
83
		} elseif ( $status->is_development_mode() ) {
84
			$result = self::skipped_test( $name, __( 'Jetpack is in Development Mode:', 'jetpack' ) . ' ' . Jetpack::development_mode_trigger_text(), __( 'Disable development mode.', 'jetpack' ) );
85
		} else {
86
			$result = self::failing_test( $name, __( 'Jetpack is not connected.', 'jetpack' ), 'cycle_connection' );
87
		}
88

class.jetpack.php 1 location

@@ 1606-1616 (lines=11) @@
1603
	 */
1604
	public static function show_development_mode_notice() {
1605
		$status = new Status();
1606
		if ( $status->is_development_mode() ) {
1607
			$notice = sprintf(
1608
				/* translators: %s is a URL */
1609
				__( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ),
1610
				'https://jetpack.com/support/development-mode/'
1611
			);
1612
1613
			$notice .= ' ' . self::development_mode_trigger_text();
1614
1615
			echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>';
1616
		}
1617
1618
		// Throw up a notice if using a development version and as for feedback.
1619
		if ( self::is_development_version() ) {