refactor: Clean up code by removing unnecessary whitespace and improving readability

This commit is contained in:
Van Leemput Dayron
2025-11-05 07:55:05 +01:00
parent 9cb21c3470
commit 30dca05e15
8 changed files with 605 additions and 446 deletions

View File

@@ -70,7 +70,7 @@ class Activity {
/// Vérifie si tous les participants du voyage ont voté positivement pour cette activité
bool isApprovedByAllParticipants(List<String> tripParticipants) {
if (tripParticipants.isEmpty) return false;
// Tous les participants doivent avoir voté
for (String participantId in tripParticipants) {
if (!votes.containsKey(participantId)) {
@@ -80,7 +80,7 @@ class Activity {
return false; // Quelqu'un a voté négativement ou neutre
}
}
return true; // Tous ont voté positivement
}
@@ -183,7 +183,7 @@ class Activity {
@override
String toString() {
return 'Activity(id: $id, name: $name, category: $category, votes: ${totalVotes})';
return 'Activity(id: $id, name: $name, category: $category, votes: $totalVotes)';
}
@override
@@ -245,4 +245,4 @@ enum PriceLevel {
}
return null;
}
}
}