Completed
Push — master ( 1c3cb2...337d33 )
by Sebastian
03:55
created
app/Http/Controllers/Back/MediaLibraryApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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'),
Please login to merge, or discard this patch.
app/Providers/AuthServiceProvider.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Services/Mailers/AdminMailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Providers/RepositoryServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Foundation/helpers.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Foundation/Repositories/DbRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Foundation/Repositories/CacheRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Foundation/Models/Traits/Draftable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
app/Foundation/Models/Traits/HasTags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.