@@ -75,7 +75,7 @@ |
||
75 | 75 | public function register() |
76 | 76 | { |
77 | 77 | // register the current package |
78 | - $this->app->bind('base', function ($app) { |
|
78 | + $this->app->bind('base', function($app) { |
|
79 | 79 | return new Base($app); |
80 | 80 | }); |
81 | 81 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | 'middleware' => 'web', |
17 | 17 | 'prefix' => config('backpack.base.route_prefix'), |
18 | 18 | ], |
19 | -function () { |
|
19 | +function() { |
|
20 | 20 | // if not otherwise configured, setup the auth routes |
21 | 21 | if (config('backpack.base.setup_auth_routes')) { |
22 | 22 | // Authentication Routes... |
@@ -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 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | // insert the given code before the file's last line |
53 | 53 | $file_lines = explode(PHP_EOL, $old_file_content); |
54 | 54 | $end_line_number = $this->customRoutesFileEndLine($file_lines); |
55 | - $file_lines[$end_line_number+1] = $file_lines[$end_line_number]; |
|
55 | + $file_lines[$end_line_number + 1] = $file_lines[$end_line_number]; |
|
56 | 56 | $file_lines[$end_line_number] = ' '.$code; |
57 | 57 | $new_file_content = implode(PHP_EOL, $file_lines); |
58 | 58 | |
@@ -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 { |