Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 405-413 (lines=9) @@
402
					'<p>%s</p>',
403
					$fail['resolution']
404
				);
405
				if ( ! empty( $fail['action'] ) ) {
406
					$result['actions'] = sprintf(
407
						'<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
408
						esc_url( $fail['action'] ),
409
						__( 'Resolve', 'jetpack' ),
410
						/* translators: accessibility text */
411
						__( '(opens in a new tab)', 'jetpack' )
412
					);
413
				}
414
			} else {
415
				$result['description'] .= sprintf(
416
					'<p>%s</p>',

_inc/lib/debugger/debug-functions.php 1 location

@@ 82-90 (lines=9) @@
79
					}
80
81
					$return['status'] = $results['severity'];
82
					if ( ! empty( $results['action'] ) ) {
83
						$return['actions'] = sprintf(
84
							'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
85
							esc_url( $results['action'] ),
86
							$results['action_label'],
87
							/* translators: accessibility text */
88
							__( '(opens in a new tab)', 'jetpack' )
89
						);
90
					}
91
				} elseif ( true === $results['pass'] ) {
92
					// Passing tests can chose to override defaults.
93
					if ( $results['label'] ) {