Completed
Pull Request — master (#3979)
by
unknown
07:34
created
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/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/Auth/Database/Role.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     {
101 101
         parent::boot();
102 102
 
103
-        static::deleting(function ($model) {
103
+        static::deleting(function($model) {
104 104
             $model->administrators()->detach();
105 105
 
106 106
             $model->permissions()->detach();
Please login to merge, or discard this patch.
src/Admin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,10 +311,10 @@
 block discarded – undo
311 311
             'middleware' => config('admin.route.middleware'),
312 312
         ];
313 313
 
314
-        app('router')->group($attributes, function ($router) {
314
+        app('router')->group($attributes, function($router) {
315 315
 
316 316
             /* @var \Illuminate\Support\Facades\Route $router */
317
-            $router->namespace('\Encore\Admin\Controllers')->group(function ($router) {
317
+            $router->namespace('\Encore\Admin\Controllers')->group(function($router) {
318 318
 
319 319
                 /* @var \Illuminate\Routing\Router $router */
320 320
                 $router->resource('auth/users', 'UserController')->names('admin.auth.users');
Please login to merge, or discard this patch.
src/Console/ResetPasswordCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         askForUserName:
33 33
         $username = $this->askWithCompletion('Please enter a username who needs to reset his password', $users->pluck('username')->toArray());
34 34
 
35
-        $user = $users->first(function ($user) use ($username) {
35
+        $user = $users->first(function($user) use ($username) {
36 36
             return $user->username == $username;
37 37
         });
38 38
 
Please login to merge, or discard this patch.
src/Console/CreateUserCommand.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
         if (empty($selectedOption)) {
43 43
             $selected = $this->choice('Please choose a role for the user', $selectedOption, null, null, true);
44 44
 
45
-            $roles = $roles->filter(function ($role) use ($selected) {
45
+            $roles = $roles->filter(function($role) use ($selected) {
46 46
                 return in_array($role->name, $selected);
47 47
             });
48 48
         }
Please login to merge, or discard this patch.
src/Console/ExportSeedCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         $fields = \DB::getSchemaBuilder()->getColumnListing($table);
90 90
         $fields = array_diff($fields, $exceptFields);
91 91
 
92
-        $array = \DB::table($table)->get($fields)->map(function ($item) {
92
+        $array = \DB::table($table)->get($fields)->map(function($item) {
93 93
             return (array) $item;
94 94
         })->all();
95 95
 
Please login to merge, or discard this patch.
src/Console/AdminCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     protected function listAdminCommands()
58 58
     {
59
-        $commands = collect(Artisan::all())->mapWithKeys(function ($command, $key) {
59
+        $commands = collect(Artisan::all())->mapWithKeys(function($command, $key) {
60 60
             if (Str::startsWith($key, 'admin:')) {
61 61
                 return [$key => $command];
62 62
             }
Please login to merge, or discard this patch.
src/Grid/Concerns/HasQuickSearch.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             $this->search = $search;
42 42
         }
43 43
 
44
-        return tap(new Tools\QuickSearch(), function ($search) {
44
+        return tap(new Tools\QuickSearch(), function($search) {
45 45
             $this->tools->append($search);
46 46
         });
47 47
     }
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
      */
126 126
     protected function parseQueryBindings(array $queries)
127 127
     {
128
-        $columnMap = $this->columns->mapWithKeys(function (Column $column) {
128
+        $columnMap = $this->columns->mapWithKeys(function(Column $column) {
129 129
             $label = $column->getLabel();
130 130
             $name = $column->getName();
131 131
 
132 132
             return [$label => $name, $name => $name];
133 133
         });
134 134
 
135
-        return collect($queries)->map(function ($query) use ($columnMap) {
135
+        return collect($queries)->map(function($query) use ($columnMap) {
136 136
             $segments = explode(':', $query, 2);
137 137
 
138 138
             if (count($segments) != 2) {
Please login to merge, or discard this patch.