Code Duplication    Length = 10-11 lines in 2 locations

_inc/lib/debugger/class-jetpack-cxn-tests.php 2 locations

@@ 197-206 (lines=10) @@
194
195
		if ( $local_user->exists() ) {
196
			$result = self::passing_test( array( 'name' => $name ) );
197
		} else {
198
			$result = self::failing_test(
199
				array(
200
					'name'              => $name,
201
					'short_description' => __( 'The user who setup the Jetpack connection no longer exists on this site.', 'jetpack' ),
202
					'action_label'      => __( 'Please disconnect and reconnect Jetpack.', 'jetpack' ),
203
					'action'            => 'https://jetpack.com/support/reconnecting-reinstalling-jetpack/',
204
				)
205
			);
206
		}
207
208
		return $result;
209
	}
@@ 232-242 (lines=11) @@
229
230
		if ( user_can( $master_user, 'manage_options' ) ) {
231
			$result = self::passing_test( array( 'name' => $name ) );
232
		} else {
233
			$result = self::failing_test(
234
				array(
235
					'name'              => $name,
236
					/* translators: a WordPress username */
237
					'short_description' => sprintf( __( 'The user (%s) who setup the Jetpack connection is not an administrator.', 'jetpack' ), $master_user->user_login ),
238
					'action_label'      => __( 'Either upgrade the user or disconnect and reconnect Jetpack.', 'jetpack' ),
239
					'action'            => 'https://jetpack.com/support/reconnecting-reinstalling-jetpack/',
240
				)
241
			);
242
		}
243
244
		return $result;
245
	}