Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
harunbleech committed Oct 24, 2024
1 parent 943bb9b commit e1c31fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/test-run-receipt/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
<span><?php esc_html_e( 'Difference', 'visual-regression-tests' ); ?></span>
</div>
<?php
foreach ( $data['test_post_ids'] as $post_id ) :
$alert = array_values( array_filter( $data['alerts'], static function( $alert ) use ( $post_id ) {
return $alert->post_id === $post_id;
foreach ( $data['test_post_ids'] as $test_post_id ) :
$alert = array_values( array_filter( $data['alerts'], static function( $alert ) use ( $test_post_id ) {
return $alert->post_id === $test_post_id;
} ) );
$difference = $alert ? ceil( $alert[0]->differences ) : 0;
?>
<div class="vrts-test-run-receipt__pages-status-row">
<a href="<?php echo esc_url( get_permalink( $post_id ) ); ?>"><?php echo esc_html( Url_Helpers::get_relative_permalink( $post_id ) ); ?></a>
<a href="<?php echo esc_url( get_permalink( $test_post_id ) ); ?>"><?php echo esc_html( Url_Helpers::get_relative_permalink( $test_post_id ) ); ?></a>
<span>
<?php
printf(
Expand Down

0 comments on commit e1c31fd

Please sign in to comment.