Completed
Push — ft/nomadic ( d79211...06d8e5 )
by Philippe
59:24 queued 52:00
created
src/Management/AbstractManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             return $this->indexPagination($builder);
84 84
         }
85 85
         
86
-        return $builder->get()->map(function ($model) {
86
+        return $builder->get()->map(function($model) {
87 87
             return (new static($this->registration))->manage($model);
88 88
         });
89 89
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $paginator = $builder->paginate($this->pageCount);
113 113
 
114
-        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function ($model) {
114
+        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function($model) {
115 115
             return (new static($this->registration))->manage($model);
116 116
         });
117 117
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
     public function guard($verb): Manager
187 187
     {
188
-        if (! $this->can($verb)) {
188
+        if (!$this->can($verb)) {
189 189
             NotAllowedManagerRoute::notAllowedVerb($verb, $this);
190 190
         }
191 191
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         $fields = $this->fields();
209 209
 
210 210
         foreach ($this->assistants() as $assistant) {
211
-            if (! method_exists($assistant, 'fields')) {
211
+            if (!method_exists($assistant, 'fields')) {
212 212
                 continue;
213 213
             }
214 214
 
@@ -285,9 +285,9 @@  discard block
 block discarded – undo
285 285
         $this->{'booted'.$baseMethod} = [];
286 286
         
287 287
         foreach (class_uses_recursive($class) as $trait) {
288
-            $method = class_basename($trait) . ucfirst($baseMethod);
288
+            $method = class_basename($trait).ucfirst($baseMethod);
289 289
             
290
-            if (method_exists($class, $method) && ! in_array($method, $this->{'booted'.$baseMethod})) {
290
+            if (method_exists($class, $method) && !in_array($method, $this->{'booted'.$baseMethod})) {
291 291
                 $this->{'booted'.$baseMethod}[] = lcfirst($method);
292 292
             }
293 293
         }
Please login to merge, or discard this patch.
src/Management/Nomadic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
             throw NotAllowedManagerRoute::create($this);
13 13
         }
14 14
 
15
-        if (! auth()->guard('chief')->user()->hasRole('developer') && in_array($verb, ['create', 'store', 'delete'])) {
15
+        if (!auth()->guard('chief')->user()->hasRole('developer') && in_array($verb, ['create', 'store', 'delete'])) {
16 16
             throw NotAllowedManagerRoute::notAllowedVerb($verb, $this);
17 17
         }
18 18
     }
Please login to merge, or discard this patch.
src/Modules/Module.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             return static::$managedModelKey;
68 68
         }
69 69
 
70
-        throw new \Exception('Missing required static property \'managedModelKey\' on ' . static::class. '.');
70
+        throw new \Exception('Missing required static property \'managedModelKey\' on '.static::class.'.');
71 71
     }
72 72
 
73 73
     /**
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public static function availableForCreate(): Collection
78 78
     {
79
-        $managers = app(Managers::class)->findByTag('module')->filter(function ($manager) {
79
+        $managers = app(Managers::class)->findByTag('module')->filter(function($manager) {
80 80
             return $manager->can('create');
81
-        })->map(function ($manager) {
81
+        })->map(function($manager) {
82 82
             return $manager->details();
83 83
         });
84 84
 
Please login to merge, or discard this patch.