@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | protected function registerLoader() |
18 | 18 | { |
19 | - $this->app->singleton('translation.loader', function ($app) { |
|
19 | + $this->app->singleton('translation.loader', function($app) { |
|
20 | 20 | return new TranslationLoader($app['files'], $app['path.lang']); |
21 | 21 | }); |
22 | 22 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | public function userWasCreated(UserWasCreated $event) |
20 | 20 | { |
21 | - Password::broker('back')->sendResetLink(['email' => $event->user->email], function (Message $message) { |
|
21 | + Password::broker('back')->sendResetLink(['email' => $event->user->email], function(Message $message) { |
|
22 | 22 | $message->subject(fragment('passwords.subjectEmailNewUser')); |
23 | 23 | }); |
24 | 24 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $this->sendMail( |
29 | 29 | config('mail.recipients.questionForm'), |
30 | - 'Een nieuwe reactie op ' . config('app.url'), |
|
30 | + 'Een nieuwe reactie op '.config('app.url'), |
|
31 | 31 | 'emails.admin.contactFormSubmitted', |
32 | 32 | $event->formResponse->toArray() |
33 | 33 | ); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | config()->set( |
53 | 53 | 'mail.recipients', |
54 | - collect(config('mail.recipients'))->map(function () { |
|
54 | + collect(config('mail.recipients'))->map(function() { |
|
55 | 55 | return '[email protected]'; |
56 | 56 | }) |
57 | 57 | ); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | public function getNameAttribute(): string |
51 | 51 | { |
52 | - return $this->first_name . ' ' . $this->last_name; |
|
52 | + return $this->first_name.' '.$this->last_name; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public function hasNeverLoggedIn(): bool |
@@ -15,10 +15,10 @@ |
||
15 | 15 | } |
16 | 16 | |
17 | 17 | $visitors = Analytics::fetchVisitorsAndPageViews(Period::days(365)) |
18 | - ->groupBy(function (array $visitorStatistics) { |
|
18 | + ->groupBy(function(array $visitorStatistics) { |
|
19 | 19 | return $visitorStatistics['date']->format('Y-m'); |
20 | 20 | }) |
21 | - ->map(function ($visitorStatistics, $yearMonth) { |
|
21 | + ->map(function($visitorStatistics, $yearMonth) { |
|
22 | 22 | list($year, $month) = explode('-', $yearMonth); |
23 | 23 | |
24 | 24 | return [ |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $model = $this->getModelFromRequest($request); |
19 | 19 | |
20 | 20 | $media = collect($request->file('file')) |
21 | - ->map(function (UploadedFile $file) use ($model, $request) { |
|
21 | + ->map(function(UploadedFile $file) use ($model, $request) { |
|
22 | 22 | return $model |
23 | 23 | ->addMedia($file) |
24 | 24 | ->withCustomProperties(['temp' => $request->has('redactor') ? false : true]) |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | $collectionName = $request->get('collectionName'); |
40 | 40 | |
41 | - $media = $model->getMedia($collectionName)->reduce(function (Collection $collection, Media $media) { |
|
41 | + $media = $model->getMedia($collectionName)->reduce(function(Collection $collection, Media $media) { |
|
42 | 42 | return $collection->push([ |
43 | 43 | 'thumb' => $media->getUrl('admin'), |
44 | 44 | 'image' => $media->getUrl('redactor'), |
@@ -17,8 +17,7 @@ |
||
17 | 17 | 'customProperties' => json_encode($media->custom_properties, JSON_FORCE_OBJECT), |
18 | 18 | 'orderColumn' => $media->order_column, |
19 | 19 | 'thumbUrl' => strtolower($media->extension) === 'svg' ? |
20 | - $media->getUrl() : |
|
21 | - $media->getUrl('admin'), |
|
20 | + $media->getUrl() : $media->getUrl('admin'), |
|
22 | 21 | 'originalUrl' => $media->getUrl(), |
23 | 22 | ]; |
24 | 23 | } |
@@ -6,6 +6,6 @@ |
||
6 | 6 | { |
7 | 7 | protected function rememberForever(string $key, $value) |
8 | 8 | { |
9 | - return cache()->rememberForever('repository.' . static::class . '.' . $key, $value); |
|
9 | + return cache()->rememberForever('repository.'.static::class.'.'.$key, $value); |
|
10 | 10 | } |
11 | 11 | } |
@@ -10,25 +10,25 @@ |
||
10 | 10 | { |
11 | 11 | public function register() |
12 | 12 | { |
13 | - Menu::macro('front', function () { |
|
13 | + Menu::macro('front', function() { |
|
14 | 14 | return Menu::new()->setActiveFromRequest(locale()); |
15 | 15 | }); |
16 | 16 | |
17 | - Menu::macro('main', function () { |
|
17 | + Menu::macro('main', function() { |
|
18 | 18 | return Menu::front() |
19 | 19 | ->addClass('nav navbar-nav') |
20 | 20 | ->url('/', 'Home'); |
21 | 21 | }); |
22 | 22 | |
23 | - Menu::macro('language', function () { |
|
24 | - return locales()->reduce(function (Menu $menu, string $locale) { |
|
23 | + Menu::macro('language', function() { |
|
24 | + return locales()->reduce(function(Menu $menu, string $locale) { |
|
25 | 25 | $menu->url($locale, $locale); |
26 | 26 | }, Menu::front()); |
27 | 27 | }); |
28 | 28 | |
29 | - Menu::macro('articleSiblings', function (Article $article) { |
|
29 | + Menu::macro('articleSiblings', function(Article $article) { |
|
30 | 30 | return app(ArticleRepository::class)->getSiblings($article) |
31 | - ->reduce(function (Menu $menu, Article $article) { |
|
31 | + ->reduce(function(Menu $menu, Article $article) { |
|
32 | 32 | return $menu->url($article->fullUrl, $article->name); |
33 | 33 | }, Menu::front()); |
34 | 34 | }); |