Code Duplication    Length = 10-11 lines in 2 locations

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

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