From 22f044078a85963bc0ed97dce66b10289a8e3f58 Mon Sep 17 00:00:00 2001 From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> Date: Sat, 18 May 2024 11:53:46 +0100 Subject: [PATCH] fix code style Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- resources/lang/en/default.php | 2 +- src/Models/Menu.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lang/en/default.php b/resources/lang/en/default.php index e8ca986..3ee1375 100644 --- a/resources/lang/en/default.php +++ b/resources/lang/en/default.php @@ -226,7 +226,7 @@ 'alert_no_menu_to_order' => 'Please, add some menus before you checkout!', 'alert_no_selected_local' => 'Please select your local restaurant<', 'alert_location_closed' => 'Sorry, you can\'t place an order now, we are currently closed,
please come back later during our opening times.', - 'alert_outside_hours' => 'The selected time is outside our %s hours', + 'alert_outside_hours' => 'Your selected order time is outside our %s hours', 'alert_customer_not_logged' => 'Almost there, Please login or register to complete checkout.', 'alert_delivery_area_changed' => 'Your delivery area has changed, please confirm the delivery cost.', diff --git a/src/Models/Menu.php b/src/Models/Menu.php index 0e316cb..f7c7798 100644 --- a/src/Models/Menu.php +++ b/src/Models/Menu.php @@ -253,11 +253,11 @@ public function isAvailable($datetime = null) $datetime = Carbon::parse($datetime); } - if ($this->mealtimes->contains(fn($mealtime) => $mealtime->isEnabled() && !$mealtime->isAvailable($datetime))) { + if ($this->mealtimes->contains(fn ($mealtime) => $mealtime->isEnabled() && !$mealtime->isAvailable($datetime))) { return false; } - if ($this->ingredients->contains(fn($ingredient) => !$ingredient->isEnabled())) { + if ($this->ingredients->contains(fn ($ingredient) => !$ingredient->isEnabled())) { return false; }