Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 301-308 (lines=8) @@
298
				)
299
			);
300
		}
301
		if ( ! ( new Connection_Manager() )->get_connection_owner_id() && ( new Status() )->is_no_user_testing_mode() ) {
302
			return self::skipped_test(
303
				array(
304
					'name'              => $name,
305
					'short_description' => __( 'Jetpack is running in userless mode. No master user to check.', 'jetpack' ),
306
				)
307
			);
308
		}
309
		$local_user = $this->helper_retrieve_local_master_user();
310
311
		if ( $local_user->exists() ) {
@@ 339-346 (lines=8) @@
336
				)
337
			);
338
		}
339
		if ( ! ( new Connection_Manager() )->get_connection_owner_id() && ( new Status() )->is_no_user_testing_mode() ) {
340
			return self::skipped_test(
341
				array(
342
					'name'              => $name,
343
					'short_description' => __( 'Jetpack is running in userless mode. No master user to check.', 'jetpack' ),
344
				)
345
			);
346
		}
347
		$master_user = $this->helper_retrieve_local_master_user();
348
349
		if ( user_can( $master_user, 'manage_options' ) ) {