Passed
Push — master ( db17d2...5a4a00 )
by Ben
07:00
created
src/Management/AbstractManager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return $this->indexPagination($builder);
85 85
         }
86 86
 
87
-        return $builder->get()->map(function ($model) {
87
+        return $builder->get()->map(function($model) {
88 88
             return (new static($this->registration))->manage($model);
89 89
         });
90 90
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $paginator = $builder->paginate($this->pageCount);
114 114
 
115
-        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function ($model) {
115
+        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function($model) {
116 116
             return (new static($this->registration))->manage($model);
117 117
         });
118 118
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function can($verb): bool
179 179
     {
180 180
         foreach (static::$bootedTraitMethods['can'] as $method) {
181
-            if(!method_exists($this, $method)) continue;
181
+            if (!method_exists($this, $method)) continue;
182 182
             $this->$method($verb);
183 183
         }
184 184
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     public function guard($verb): Manager
189 189
     {
190
-        if (! $this->can($verb)) {
190
+        if (!$this->can($verb)) {
191 191
             NotAllowedManagerRoute::notAllowedVerb($verb, $this);
192 192
         }
193 193
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         $fields = $this->fields();
211 211
 
212 212
         foreach ($this->assistants() as $assistant) {
213
-            if (! method_exists($assistant, 'fields')) {
213
+            if (!method_exists($assistant, 'fields')) {
214 214
                 continue;
215 215
             }
216 216
 
@@ -292,9 +292,9 @@  discard block
 block discarded – undo
292 292
             static::$bootedTraitMethods[$baseMethod] = [];
293 293
 
294 294
             foreach (class_uses_recursive($class) as $trait) {
295
-                $method = class_basename($trait) . ucfirst($baseMethod);
295
+                $method = class_basename($trait).ucfirst($baseMethod);
296 296
 
297
-                if (method_exists($class, $method) && ! in_array($method, static::$bootedTraitMethods[$baseMethod])) {
297
+                if (method_exists($class, $method) && !in_array($method, static::$bootedTraitMethods[$baseMethod])) {
298 298
                     static::$bootedTraitMethods[$baseMethod][] = lcfirst($method);
299 299
                 }
300 300
             }
Please login to merge, or discard this patch.