@@ -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 | }); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | 'tickets' => [ |
29 | 29 | 'required', |
30 | 30 | 'array', |
31 | - function ($attribute, $value, $fail) { |
|
31 | + function($attribute, $value, $fail) { |
|
32 | 32 | $ticketSum = array_sum($value); |
33 | 33 | if ($ticketSum === 0) { |
34 | 34 | $fail('Please select at least one or up to 8 tickets!'); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | 'sometimes', |
46 | 46 | 'required', |
47 | 47 | 'array', |
48 | - function ($attribute, $value, $fail) { |
|
48 | + function($attribute, $value, $fail) { |
|
49 | 49 | // We do not check if the amount of selected seats, because we already do this in the checks |
50 | 50 | // for the amount of tickets. Since the amount of tickets and seats |
51 | 51 | // has to be equal, the previous check implicits that the seats are |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | // Check if the seatIds are in the range of 1 - event's seats amount |
63 | - $validSeats = array_filter($value, function ($arrItem) use ($event) { |
|
63 | + $validSeats = array_filter($value, function($arrItem) use ($event) { |
|
64 | 64 | return $arrItem > 0 && $arrItem <= $event->seatMap->seats; |
65 | 65 | }); |
66 | 66 | if (count($validSeats) != $seatsSum) { |
@@ -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 | } |