Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed May 18, 2024
1 parent 934ce40 commit 22f0440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/lang/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,<br /> 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.',

Expand Down
4 changes: 2 additions & 2 deletions src/Models/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 22f0440

Please sign in to comment.