Completed
Pull Request — master (#3979)
by
unknown
07:34
created
src/Form/Field/Table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@
 block discarded – undo
68 68
 
69 69
         $prepare = $form->prepare($input);
70 70
 
71
-        return collect($prepare)->reject(function ($item) {
71
+        return collect($prepare)->reject(function($item) {
72 72
             return $item[NestedForm::REMOVE_FLAG_NAME] == 1;
73
-        })->map(function ($item) {
73
+        })->map(function($item) {
74 74
             unset($item[NestedForm::REMOVE_FLAG_NAME]);
75 75
 
76 76
             return $item;
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
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     protected function prepareValue($key, $record)
164 164
     {
165
-        $field = $this->fields->first(function (Field $field) use ($key) {
165
+        $field = $this->fields->first(function(Field $field) use ($key) {
166 166
             return in_array($key, (array) $field->column());
167 167
         });
168 168
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         if (array_key_exists($key, $this->original)) {
186 186
             $values = $this->original[$key];
187 187
 
188
-            $this->fields->each(function (Field $field) use ($values) {
188
+            $this->fields->each(function(Field $field) use ($values) {
189 189
                 $field->setOriginal($values);
190 190
             });
191 191
         }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function fill(array $data)
202 202
     {
203
-        $this->fields->each(function (Field $field) use ($data) {
203
+        $this->fields->each(function(Field $field) use ($data) {
204 204
             $field->fill($data);
205 205
         });
206 206
 
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
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
             $values = $this->original[$key];
242 242
         }
243 243
 
244
-        $this->fields->each(function (Field $field) use ($values) {
244
+        $this->fields->each(function(Field $field) use ($values) {
245 245
             $field->setOriginal($values);
246 246
         });
247 247
     }
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
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
             return '';
329 329
         }
330 330
 
331
-        return $tools->map(function ($tool) {
331
+        return $tools->map(function($tool) {
332 332
             if ($tool instanceof Renderable) {
333 333
                 return $tool->render();
334 334
             }
Please login to merge, or discard this patch.
src/Form/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      */
335 335
     public function field($name)
336 336
     {
337
-        return $this->fields()->first(function (Field $field) use ($name) {
337
+        return $this->fields()->first(function(Field $field) use ($name) {
338 338
             return $field->column() == $name;
339 339
         });
340 340
     }
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
 
534 534
         $this->form->getLayout()->removeReservedFields($reservedColumns);
535 535
 
536
-        $this->fields = $this->fields()->reject(function (Field $field) use ($reservedColumns) {
536
+        $this->fields = $this->fields()->reject(function(Field $field) use ($reservedColumns) {
537 537
             return in_array($field->column(), $reservedColumns);
538 538
         });
539 539
     }
Please login to merge, or discard this patch.
src/Middleware/Permission.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             return $next($request);
38 38
         }
39 39
 
40
-        if (!Admin::user()->allPermissions()->first(function ($permission) use ($request) {
40
+        if (!Admin::user()->allPermissions()->first(function($permission) use ($request) {
41 41
             return $permission->shouldPassThrough($request);
42 42
         })) {
43 43
             Checker::error();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function checkRoutePermission(Request $request)
58 58
     {
59
-        if (!$middleware = collect($request->route()->middleware())->first(function ($middleware) {
59
+        if (!$middleware = collect($request->route()->middleware())->first(function($middleware) {
60 60
             return Str::startsWith($middleware, $this->middlewarePrefix);
61 61
         })) {
62 62
             return false;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         return collect($excepts)
93 93
             ->map('admin_base_path')
94
-            ->contains(function ($except) use ($request) {
94
+            ->contains(function($except) use ($request) {
95 95
                 if ($except !== '/') {
96 96
                     $except = trim($except, '/');
97 97
                 }
Please login to merge, or discard this patch.
src/Middleware/Pjax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function respond(Response $response)
49 49
     {
50
-        $next = function () use ($response) {
50
+        $next = function() use ($response) {
51 51
             return $response;
52 52
         };
53 53
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     protected function decodeUtf8HtmlEntities($html)
141 141
     {
142
-        return preg_replace_callback('/(&#[0-9]+;)/', function ($html) {
142
+        return preg_replace_callback('/(&#[0-9]+;)/', function($html) {
143 143
             return mb_convert_encoding($html[1], 'UTF-8', 'HTML-ENTITIES');
144 144
         }, $html);
145 145
     }
Please login to merge, or discard this patch.
src/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         return collect($excepts)
44 44
             ->map('admin_base_path')
45
-            ->contains(function ($except) use ($request) {
45
+            ->contains(function($except) use ($request) {
46 46
                 if ($except !== '/') {
47 47
                     $except = trim($except, '/');
48 48
                 }
Please login to merge, or discard this patch.
src/Middleware/LogOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             return true;
67 67
         }
68 68
 
69
-        return $allowedMethods->map(function ($method) {
69
+        return $allowedMethods->map(function($method) {
70 70
             return strtoupper($method);
71 71
         })->contains($method);
72 72
     }
Please login to merge, or discard this patch.