Code Duplication    Length = 10-11 lines in 2 locations

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

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