Completed
Pull Request — master (#287)
by Philippe
18:07 queued 07:43
created
src/Management/AbstractManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
 
79 79
         $builder = $this->indexSorting($builder);
80 80
         
81
-        if($this->paginated)
81
+        if ($this->paginated)
82 82
         {
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
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
     public function guard($verb): Manager
183 183
     {
184
-        if (! $this->can($verb)) {
184
+        if (!$this->can($verb)) {
185 185
             NotAllowedManagerRoute::notAllowedVerb($verb, $this);
186 186
         }
187 187
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         $fields = $this->fields();
205 205
 
206 206
         foreach ($this->assistants() as $assistant) {
207
-            if (! method_exists($assistant, 'fields')) {
207
+            if (!method_exists($assistant, 'fields')) {
208 208
                 continue;
209 209
             }
210 210
 
Please login to merge, or discard this patch.