@@ -14,10 +14,10 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function boot() |
| 16 | 16 | { |
| 17 | - Blade::directive('time', function ($expression) { |
|
| 17 | + Blade::directive('time', function($expression) { |
|
| 18 | 18 | return "<?php echo strftime('%H:%M', date_create($expression)->getTimestamp()); ?>"; |
| 19 | 19 | }); |
| 20 | - Blade::directive('datetime', function ($expression) { |
|
| 20 | + Blade::directive('datetime', function($expression) { |
|
| 21 | 21 | return "<?php echo strftime('%A, %d.%m.%Y', date_create($expression)->getTimestamp()); ?>"; |
| 22 | 22 | }); |
| 23 | 23 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | return $this->markdown('mails.tickets.paid') |
| 53 | 53 | ->attachData($pdfContent, 'tickets-' . $this->purchase->id . '.pdf', [ |
| 54 | 54 | 'mime' => 'application/pdf', |
| 55 | - ]);; |
|
| 55 | + ]); ; |
|
| 56 | 56 | } catch (Html2PdfException $e) { |
| 57 | 57 | $html2pdf->clean(); |
| 58 | 58 | $formatter = new ExceptionFormatter($e); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | $context = new ApiContext( |
| 33 | 33 | new OAuthTokenCredential( |
| 34 | - config('paymentprovider.payPalClientId'), // ClientID |
|
| 34 | + config('paymentprovider.payPalClientId'), // ClientID |
|
| 35 | 35 | config('paymentprovider.payPalClientSecret') // ClientSecret |
| 36 | 36 | ) |
| 37 | 37 | ); |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | public function permissions() |
| 33 | 33 | { |
| 34 | 34 | $permissions = collect([]); |
| 35 | - $this->roles->each(function ($role) use (&$permissions) { |
|
| 36 | - $role->permissions->each(function ($permission) use (&$permissions) { |
|
| 35 | + $this->roles->each(function($role) use (&$permissions) { |
|
| 36 | + $role->permissions->each(function($permission) use (&$permissions) { |
|
| 37 | 37 | $permissions->push($permission); |
| 38 | 38 | }); |
| 39 | 39 | }); |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | $deadline = new \DateTime(); |
| 30 | 30 | $deadline->add(new \DateInterval('PT2H')); |
| 31 | 31 | |
| 32 | - $projects = Project::with(['events' => function ($query) use ($deadline) { |
|
| 32 | + $projects = Project::with(['events' => function($query) use ($deadline) { |
|
| 33 | 33 | $query->where('start_date', '>=', $deadline)->orderBy('start_date', 'ASC'); |
| 34 | 34 | }, 'events.location'])->get(); |
| 35 | 35 | |
| 36 | - $currentProjects = $projects->filter(function ($project) { |
|
| 36 | + $currentProjects = $projects->filter(function($project) { |
|
| 37 | 37 | return $project->events->count() > 0; |
| 38 | 38 | })->all(); |
| 39 | 39 | |
@@ -23,11 +23,11 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function events() |
| 25 | 25 | { |
| 26 | - $projects = Project::with(['events' => function ($query) { |
|
| 26 | + $projects = Project::with(['events' => function($query) { |
|
| 27 | 27 | $query->where('end_date', '>=', new \DateTime())->orderBy('start_date', 'ASC'); |
| 28 | 28 | }, 'events.location'])->get(); |
| 29 | 29 | |
| 30 | - $currentProjects = $projects->filter(function ($project) { |
|
| 30 | + $currentProjects = $projects->filter(function($project) { |
|
| 31 | 31 | return $project->events->count() > 0; |
| 32 | 32 | })->all(); |
| 33 | 33 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | public function downloadCSV(Project $project) |
| 47 | 47 | { |
| 48 | - return response()->streamDownload(function () use ($project) { |
|
| 48 | + return response()->streamDownload(function() use ($project) { |
|
| 49 | 49 | echo view('csvs.tickets', ['events' => $project->events])->render(); |
| 50 | 50 | }, 'export.csv'); |
| 51 | 51 | } |
@@ -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 | |