From e1c31fda8986de48d6ecf600e6c94f30ce2efd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harun=20Ba=C5=A1i=C4=87?= Date: Thu, 24 Oct 2024 16:35:32 +0200 Subject: [PATCH] fix: linting --- components/test-run-receipt/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/test-run-receipt/index.php b/components/test-run-receipt/index.php index 4788335..42caa58 100644 --- a/components/test-run-receipt/index.php +++ b/components/test-run-receipt/index.php @@ -35,14 +35,14 @@ 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; ?>
- +