Skip to content

Commit

Permalink
style: use line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MHajoha committed Nov 15, 2024
1 parent 27278e8 commit 7f98258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ public function is_complete_response(array $response): bool {
* whether the new set of responses can safely be discarded.
*/
public function is_same_response(array $prevresponse, array $newresponse): bool {
/* The response has already been filtered against get_expected_data, we just need to filter out attempt state
and scoring state before comparing. */
// The response has already been filtered against get_expected_data, we just need to filter out attempt state
// and scoring state before comparing.
return $newresponse == array_filter($prevresponse, fn($key) => !str_starts_with($key, "_"), ARRAY_FILTER_USE_KEY);
}

Expand Down

0 comments on commit 7f98258

Please sign in to comment.