@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | $collectionName = $request->get('collectionName'); |
| 58 | 58 | |
| 59 | - $media = $model->getMedia($collectionName)->reduce(function (Collection $collection, Media $media) { |
|
| 59 | + $media = $model->getMedia($collectionName)->reduce(function(Collection $collection, Media $media) { |
|
| 60 | 60 | return $collection->push([ |
| 61 | 61 | 'thumb' => $media->getUrl('admin'), |
| 62 | 62 | 'image' => $media->getUrl('redactor'), |
@@ -29,9 +29,9 @@ |
||
| 29 | 29 | |
| 30 | 30 | $gate->before(function ($user, $ability) { |
| 31 | 31 | |
| 32 | - if (!$user->hasStatus(UserStatus::ACTIVE)) { |
|
| 33 | - return false; |
|
| 34 | - }; |
|
| 32 | + if (!$user->hasStatus(UserStatus::ACTIVE)) { |
|
| 33 | + return false; |
|
| 34 | + }; |
|
| 35 | 35 | |
| 36 | 36 | }); |
| 37 | 37 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | parent::registerPolicies($gate); |
| 29 | 29 | |
| 30 | - $gate->before(function ($user, $ability) { |
|
| 30 | + $gate->before(function($user, $ability) { |
|
| 31 | 31 | |
| 32 | 32 | if (!$user->hasStatus(UserStatus::ACTIVE)) { |
| 33 | 33 | return false; |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - $gate->define('login', function ($user) { |
|
| 38 | + $gate->define('login', function($user) { |
|
| 39 | 39 | /* |
| 40 | 40 | * We've already checked in the before callback that |
| 41 | 41 | * the user is active. |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | return true; |
| 44 | 44 | }); |
| 45 | 45 | |
| 46 | - $gate->define('viewBacksite', function ($user) { |
|
| 46 | + $gate->define('viewBacksite', function($user) { |
|
| 47 | 47 | return $user->hasRole(UserRole::ADMIN); |
| 48 | 48 | }); |
| 49 | 49 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $passwords = app(PasswordBroker::class); |
| 37 | 37 | |
| 38 | - $passwords->sendResetLink(['email' => $user->email], function (Message $message) { |
|
| 38 | + $passwords->sendResetLink(['email' => $user->email], function(Message $message) { |
|
| 39 | 39 | $message->subject(trans('passwords.subjectEmailNewUser', [], 'nl')); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | foreach ($this->cacheRepositories as $repositoryName) { |
| 32 | 32 | $events->listen( |
| 33 | 33 | "eloquent.saved: App\\Models\\{$repositoryName}", |
| 34 | - function () {Cache::flush();} |
|
| 34 | + function() {Cache::flush(); } |
|
| 35 | 35 | ); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Get the app's current locale. |
|
| 4 | - */ |
|
| 3 | + * Get the app's current locale. |
|
| 4 | + */ |
|
| 5 | 5 | function locale() : string |
| 6 | 6 | { |
| 7 | 7 | return app()->getLocale(); |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | return $constants; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | - return array_filter($constants, function ($key) use ($startsWithFilter) { |
|
| 189 | + return array_filter($constants, function($key) use ($startsWithFilter) { |
|
| 190 | 190 | return starts_with(strtolower($key), strtolower($startsWithFilter)); |
| 191 | 191 | }, ARRAY_FILTER_USE_KEY); |
| 192 | 192 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | $model = static::MODEL; |
| 36 | 36 | |
| 37 | - if (! isset((new $model)->translatedAttributes)) { |
|
| 37 | + if (!isset((new $model)->translatedAttributes)) { |
|
| 38 | 38 | return $this->query()->online()->where('url', $url)->first(); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function find(int $id) |
| 23 | 23 | { |
| 24 | - return $this->rememberForever("find.{$id}", function () use ($id) { |
|
| 24 | + return $this->rememberForever("find.{$id}", function() use ($id) { |
|
| 25 | 25 | return $this->dbRepository->find($id); |
| 26 | 26 | }); |
| 27 | 27 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | protected static function bootDraftable() |
| 12 | 12 | { |
| 13 | - static::updating(function ($model) { |
|
| 13 | + static::updating(function($model) { |
|
| 14 | 14 | $model->wasDraft = $model->isDraft(); |
| 15 | 15 | $model->draft = false; |
| 16 | 16 | }); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function tagsWithType(TagType $type) : Collection |
| 18 | 18 | { |
| 19 | - return $this->tags->filter(function (Tag $tag) use ($type) { |
|
| 19 | + return $this->tags->filter(function(Tag $tag) use ($type) { |
|
| 20 | 20 | return $tag->hasType($type); |
| 21 | 21 | }); |
| 22 | 22 | } |