Skip to content

Commit

Permalink
Rename opening hours instances variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperg committed Apr 5, 2024
1 parent 2bf9059 commit 2022a70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function loadMultiple(int $branchId = NULL, \DateTimeInterface $fromDate
return [];
}

$maybe_objects = array_map(function (array $data): ?OpeningHoursInstance {
$possible_objects = array_map(function (array $data): ?OpeningHoursInstance {
try {
return $this->toObject($data);
}
Expand All @@ -86,7 +86,7 @@ public function loadMultiple(int $branchId = NULL, \DateTimeInterface $fromDate
}
}, $result->fetchAll(\PDO::FETCH_ASSOC));

return array_filter($maybe_objects);
return array_filter($possible_objects);
}

/**
Expand Down

0 comments on commit 2022a70

Please sign in to comment.