@@ -81,7 +81,7 @@ |
||
81 | 81 | $this->echo('info', $beforeNotice ? ' '.$beforeNotice : $command); |
82 | 82 | |
83 | 83 | $process = new Process($command, null, null, null, $this->option('timeout'), null); |
84 | - $process->run(function ($type, $buffer) { |
|
84 | + $process->run(function($type, $buffer) { |
|
85 | 85 | if (Process::ERR === $type) { |
86 | 86 | $this->echo('comment', $buffer); |
87 | 87 | } else { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function withValidator($validator) |
44 | 44 | { |
45 | - $validator->after(function ($validator) { |
|
45 | + $validator->after(function($validator) { |
|
46 | 46 | // check old password matches |
47 | 47 | if (!Hash::check($this->input('old_password'), backpack_auth()->user()->password)) { |
48 | 48 | $validator->errors()->add('old_password', trans('backpack::base.old_password_incorrect')); |
@@ -10,5 +10,5 @@ |
||
10 | 10 | 'prefix' => config('backpack.base.route_prefix', 'admin'), |
11 | 11 | 'middleware' => ['web', config('backpack.base.middleware_key', 'admin')], |
12 | 12 | 'namespace' => 'App\Http\Controllers\Admin', |
13 | -], function () { // custom admin routes |
|
13 | +], function() { // custom admin routes |
|
14 | 14 | }); // this should be the absolute last line of this file |
@@ -59,7 +59,7 @@ |
||
59 | 59 | private function runCommand($command) |
60 | 60 | { |
61 | 61 | $process = new Process($command, null, null, null, 60, null); |
62 | - $process->run(function ($type, $buffer) { |
|
62 | + $process->run(function($type, $buffer) { |
|
63 | 63 | if (Process::ERR === $type) { |
64 | 64 | $this->line($buffer); |
65 | 65 | } else { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | $process = new Process($command, null, null, null, 300, null); |
68 | 68 | |
69 | - $process->run(function ($type, $buffer) { |
|
69 | + $process->run(function($type, $buffer) { |
|
70 | 70 | if (Process::ERR === $type) { |
71 | 71 | $this->line($buffer); |
72 | 72 | } else { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | // otherwise, in case the last line HAS been modified |
96 | 96 | // return the last line that has an ending in it |
97 | - $possible_end_lines = array_filter($file_lines, function ($k) { |
|
97 | + $possible_end_lines = array_filter($file_lines, function($k) { |
|
98 | 98 | return strpos($k, '});') === 0; |
99 | 99 | }); |
100 | 100 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | 'guard' => config('backpack.base.guard'), |
18 | 18 | 'prefix' => config('backpack.base.route_prefix'), |
19 | 19 | ], |
20 | -function () { |
|
20 | +function() { |
|
21 | 21 | // if not otherwise configured, setup the auth routes |
22 | 22 | if (config('backpack.base.setup_auth_routes')) { |
23 | 23 | // Authentication Routes... |
@@ -96,13 +96,13 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function allowCustomGuardDefinitionInRouteGroups() |
98 | 98 | { |
99 | - $this->app['router']->matched(function (\Illuminate\Routing\Events\RouteMatched $e) { |
|
99 | + $this->app['router']->matched(function(\Illuminate\Routing\Events\RouteMatched $e) { |
|
100 | 100 | $route = $e->route; |
101 | 101 | if (!array_has($route->getAction(), 'guard')) { |
102 | 102 | return; |
103 | 103 | } |
104 | 104 | $routeGuard = array_get($route->getAction(), 'guard'); |
105 | - $this->app['auth']->resolveUsersUsing(function ($guard = null) use ($routeGuard) { |
|
105 | + $this->app['auth']->resolveUsersUsing(function($guard = null) use ($routeGuard) { |
|
106 | 106 | return $this->app['auth']->guard($routeGuard)->user(); |
107 | 107 | }); |
108 | 108 | $this->app['auth']->setDefaultDriver($routeGuard); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | public function register() |
190 | 190 | { |
191 | 191 | // register the current package |
192 | - $this->app->bind('base', function ($app) { |
|
192 | + $this->app->bind('base', function($app) { |
|
193 | 193 | return new Base($app); |
194 | 194 | }); |
195 | 195 |