@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function events() |
22 | 22 | { |
23 | - $projects = Project::where('is_archived', 0)->with(['events' => function ($query) { |
|
23 | + $projects = Project::where('is_archived', 0)->with(['events' => function($query) { |
|
24 | 24 | $query->where('retailer_sell_stop', '>=', new \DateTime())->orderBy('start_date', 'ASC'); |
25 | 25 | }, 'events.location'])->get(); |
26 | 26 | |
27 | - $currentProjects = $projects->filter(function ($project) { |
|
27 | + $currentProjects = $projects->filter(function($project) { |
|
28 | 28 | return $project->events->count() > 0; |
29 | 29 | })->all(); |
30 | 30 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function sellTickets(SellTickets $request, Event $event) |
51 | 51 | { |
52 | - if( new \DateTime($event->retailer_sell_stop) < new \DateTime() ) { |
|
52 | + if (new \DateTime($event->retailer_sell_stop) < new \DateTime()) { |
|
53 | 53 | Log::warning('Tickets-Sell-Action after retailer_sell_stop by user#' . Auth::user()->id . ' failed'); |
54 | 54 | // Redirect user to select a valid amount of tickets |
55 | 55 | return redirect()->route('retail.sell.seats', [$event]) |
@@ -26,11 +26,11 @@ |
||
26 | 26 | Cache::put('deletedLostOrders', '1', $expiresAt); |
27 | 27 | } |
28 | 28 | |
29 | - $projects = Project::where('is_archived', 0)->with(['events' => function ($query) { |
|
29 | + $projects = Project::where('is_archived', 0)->with(['events' => function($query) { |
|
30 | 30 | $query->where('customer_sell_stop', '>=', new \DateTime())->orderBy('start_date', 'ASC'); |
31 | 31 | }, 'events.location'])->get(); |
32 | 32 | |
33 | - $currentProjects = $projects->filter(function ($project) { |
|
33 | + $currentProjects = $projects->filter(function($project) { |
|
34 | 34 | return $project->events->count() > 0; |
35 | 35 | })->all(); |
36 | 36 |