@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -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 | } |