@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | protected function commands() |
| 37 | 37 | { |
| 38 | - $this->load(__DIR__.'/Commands'); |
|
| 38 | + $this->load(__DIR__ . '/Commands'); |
|
| 39 | 39 | |
| 40 | 40 | require base_path('routes/console.php'); |
| 41 | 41 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public function total() |
| 48 | 48 | { |
| 49 | 49 | $tickets = $this->tickets; |
| 50 | - return $tickets->sum(function ($ticket) { |
|
| 50 | + return $tickets->sum(function($ticket) { |
|
| 51 | 51 | return $ticket->price(); |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | public function events() |
| 56 | 56 | { |
| 57 | 57 | $events = []; |
| 58 | - $this->tickets->each(function ($ticket) use (&$events) { |
|
| 58 | + $this->tickets->each(function($ticket) use (&$events) { |
|
| 59 | 59 | $events[$ticket->event->id] = $ticket->event; |
| 60 | 60 | }); |
| 61 | 61 | return collect($events); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function ticketList() |
| 69 | 69 | { |
| 70 | 70 | $list = []; |
| 71 | - $this->tickets->each(function ($ticket) use (&$list) { |
|
| 71 | + $this->tickets->each(function($ticket) use (&$list) { |
|
| 72 | 72 | if (array_key_exists($ticket->priceCategory->name, $list)) { |
| 73 | 73 | $list[$ticket->priceCategory->name]['count']++; |
| 74 | 74 | } else { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function deleteWithAllData() |
| 88 | 88 | { |
| 89 | - $this->tickets->each(function ($ticket) { |
|
| 89 | + $this->tickets->each(function($ticket) { |
|
| 90 | 90 | $ticket->delete(); |
| 91 | 91 | }); |
| 92 | 92 | |