Completed
Push — master ( fcb695...c2a60e )
by Song
08:26
created
src/Auth/Database/Permission.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $method = $this->http_method;
66 66
 
67
-        $matches = array_map(function ($path) use ($method) {
67
+        $matches = array_map(function($path) use ($method) {
68 68
             $path = trim(config('admin.route.prefix'), '/').trim($path, '/');
69 69
 
70 70
             if (Str::contains($path, ':')) {
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function matchRequest(array $match, Request $request)
96 96
     {
97
-        if (! $request->is(trim($match['path'], '/'))) {
97
+        if (!$request->is(trim($match['path'], '/'))) {
98 98
             return false;
99 99
         }
100 100
 
101
-        $method = collect($match['method'])->filter()->map(function ($method) {
101
+        $method = collect($match['method'])->filter()->map(function($method) {
102 102
             return strtoupper($method);
103 103
         });
104 104
 
Please login to merge, or discard this patch.
src/Auth/Database/HasPermissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function allPermissions()
59 59
     {
60
-        return $this->roles->map(function ($role) {
60
+        return $this->roles->map(function($role) {
61 61
             return $role->permissions;
62 62
         })->flatten()->merge($this->permissions);
63 63
     }
Please login to merge, or discard this patch.
src/Auth/Permission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         if (is_array($permission)) {
25
-            collect($permission)->each(function ($permission) {
25
+            collect($permission)->each(function($permission) {
26 26
                 call_user_func([Permission::class, 'check'], $permission);
27 27
             });
28 28
 
Please login to merge, or discard this patch.
src/Form/NestedForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
         if (array_key_exists($key, $this->original)) {
174 174
             $values = $this->original[$key];
175 175
         }
176
-        $this->fields->each(function (Field $field) use ($values) {
176
+        $this->fields->each(function(Field $field) use ($values) {
177 177
             $field->setOriginal($values);
178 178
         });
179 179
     }
Please login to merge, or discard this patch.
src/Form/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             $this->add($this->backButton());
134 134
         }
135 135
 
136
-        return $this->tools->map(function ($tool) {
136
+        return $this->tools->map(function($tool) {
137 137
             if ($tool instanceof Renderable) {
138 138
                 return $tool->render();
139 139
             }
Please login to merge, or discard this patch.
src/Form/EmbeddedForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      */
162 162
     protected function prepareValue($key, $record)
163 163
     {
164
-        $field = $this->fields->first(function (Field $field) use ($key) {
164
+        $field = $this->fields->first(function(Field $field) use ($key) {
165 165
             return in_array($key, (array) $field->column());
166 166
         });
167 167
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         if (array_key_exists($key, $this->original)) {
185 185
             $values = $this->original[$key];
186 186
 
187
-            $this->fields->each(function (Field $field) use ($values) {
187
+            $this->fields->each(function(Field $field) use ($values) {
188 188
                 $field->setOriginal($values);
189 189
             });
190 190
         }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function fill(array $data)
201 201
     {
202
-        $this->fields->each(function (Field $field) use ($data) {
202
+        $this->fields->each(function(Field $field) use ($data) {
203 203
             $field->fill($data);
204 204
         });
205 205
 
Please login to merge, or discard this patch.
src/Form/Tab.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     public function getTabs()
83 83
     {
84 84
         // If there is no active tab, then active the first.
85
-        if ($this->tabs->filter(function ($tab) {
85
+        if ($this->tabs->filter(function($tab) {
86 86
             return $tab['active'];
87 87
         })->isEmpty()) {
88 88
             $first = $this->tabs->first();
Please login to merge, or discard this patch.
src/Form/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     public function field($name)
251 251
     {
252
-        return $this->fields()->first(function (Field $field) use ($name) {
252
+        return $this->fields()->first(function(Field $field) use ($name) {
253 253
             return $field->column() == $name;
254 254
         });
255 255
     }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      */
262 262
     public function hasRows()
263 263
     {
264
-        return ! empty($this->form->rows);
264
+        return !empty($this->form->rows);
265 265
     }
266 266
 
267 267
     /**
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
             $this->form->model()->getUpdatedAtColumn(),
491 491
         ];
492 492
 
493
-        $this->fields = $this->fields()->reject(function (Field $field) use ($reservedColumns) {
493
+        $this->fields = $this->fields()->reject(function(Field $field) use ($reservedColumns) {
494 494
             return in_array($field->column(), $reservedColumns);
495 495
         });
496 496
     }
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     function admin_base_path($path = '')
41 41
     {
42
-        $prefix =  '/'.trim(config('admin.route.prefix'), '/');
42
+        $prefix = '/'.trim(config('admin.route.prefix'), '/');
43 43
 
44 44
         return $prefix.'/'.trim($path, '/');
45 45
     }
Please login to merge, or discard this patch.