Completed
Pull Request — ft/added-admin-pagination (#291)
by Philippe
39:17 queued 32:21
created
src/Management/AbstractManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             return $this->indexPagination($builder);
83 83
         }
84 84
         
85
-        return $builder->get()->map(function ($model) {
85
+        return $builder->get()->map(function($model) {
86 86
             return (new static($this->registration))->manage($model);
87 87
         });
88 88
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     {
111 111
         $paginator = $builder->paginate($this->pageCount);
112 112
 
113
-        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function ($model) {
113
+        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function($model) {
114 114
             return (new static($this->registration))->manage($model);
115 115
         });
116 116
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
     public function guard($verb): Manager
182 182
     {
183
-        if (! $this->can($verb)) {
183
+        if (!$this->can($verb)) {
184 184
             NotAllowedManagerRoute::notAllowedVerb($verb, $this);
185 185
         }
186 186
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         $fields = $this->fields();
204 204
 
205 205
         foreach ($this->assistants() as $assistant) {
206
-            if (! method_exists($assistant, 'fields')) {
206
+            if (!method_exists($assistant, 'fields')) {
207 207
                 continue;
208 208
             }
209 209
 
Please login to merge, or discard this patch.