Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 453-461 (lines=9) @@
450
					'<p>%s</p>',
451
					$fail['resolution']
452
				);
453
				if ( ! empty( $fail['action'] ) ) {
454
					$result['actions'] = sprintf(
455
						'<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>',
456
						esc_url( $fail['action'] ),
457
						__( 'Resolve', 'jetpack' ),
458
						/* translators: accessibility text */
459
						__( '(opens in a new tab)', 'jetpack' )
460
					);
461
				}
462
			} else {
463
				$result['description'] .= sprintf(
464
					'<p>%s</p>',

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

@@ 98-106 (lines=9) @@
95
96
				if ( false === $results['pass'] ) {
97
					$return['status'] = $results['severity'];
98
					if ( ! empty( $results['action'] ) ) {
99
						$return['actions'] = sprintf(
100
							'<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>',
101
							esc_url( $results['action'] ),
102
							$results['action_label'],
103
							/* translators: accessibility text */
104
							__( '(opens in a new tab)', 'jetpack' )
105
						);
106
					}
107
				}
108
109
				return $return;