@@ -49,7 +49,7 @@ |
||
49 | 49 | <br> |
50 | 50 | <small> |
51 | 51 | <?php |
52 | - $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
52 | + $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
53 | 53 | ?> |
54 | 54 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
55 | 55 | </small> |
@@ -49,7 +49,7 @@ |
||
49 | 49 | <br> |
50 | 50 | <small> |
51 | 51 | <?php |
52 | - $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
52 | + $default_error_message = "Please return to <a href='".url('')."'>our homepage</a>."; |
|
53 | 53 | ?> |
54 | 54 | {!! isset($exception)? ($exception->getMessage()?$exception->getMessage():$default_error_message): $default_error_message !!} |
55 | 55 | </small> |
@@ -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 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Routing\Router; |
6 | 6 | use Illuminate\Support\ServiceProvider; |
7 | -use Route; |
|
8 | 7 | |
9 | 8 | class BaseServiceProvider extends ServiceProvider |
10 | 9 | { |
@@ -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... |
@@ -106,7 +106,7 @@ |
||
106 | 106 | /** |
107 | 107 | * Write text to the screen for the user to see. |
108 | 108 | * |
109 | - * @param [string] $type line, info, comment, question, error |
|
109 | + * @param string $type line, info, comment, question, error |
|
110 | 110 | * @param [string] $content |
111 | 111 | */ |
112 | 112 | public function echo($type, $content) |
@@ -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')); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | |
66 | 66 | $process = new Process($command, null, null, null, 300, null); |
67 | 67 | |
68 | - $process->run(function ($type, $buffer) { |
|
68 | + $process->run(function($type, $buffer) { |
|
69 | 69 | if (Process::ERR === $type) { |
70 | 70 | $this->line($buffer); |
71 | 71 | } else { |
@@ -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 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * Appends the configured backpack prefix and returns |
6 | 6 | * the URL using the standard Laravel helpers. |
7 | 7 | * |
8 | - * @param $path |
|
8 | + * @param string $path |
|
9 | 9 | * |
10 | 10 | * @return string |
11 | 11 | */ |
@@ -132,6 +132,7 @@ discard block |
||
132 | 132 | * Returns a new displayable view based on the current configured backpack |
133 | 133 | * |
134 | 134 | * @param string (see config/backpack/base.php) |
135 | + * @param string $view |
|
135 | 136 | * |
136 | 137 | * @return string |
137 | 138 | */ |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $theme = config('backpack.base.theme'); |
141 | 141 | |
142 | 142 | if(is_null($theme)) { |
143 | - $theme = 'adminlte'; |
|
143 | + $theme = 'adminlte'; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | $returnView = "{$package}::{$theme}.{$view}"; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $theme = config('backpack.base.theme'); |
166 | 166 | |
167 | 167 | if(is_null($theme)) { |
168 | - $theme = 'adminlte'; |
|
168 | + $theme = 'adminlte'; |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | return "{$package}::{$theme}.{$view}"; |
@@ -139,12 +139,12 @@ discard block |
||
139 | 139 | { |
140 | 140 | $theme = config('backpack.base.theme'); |
141 | 141 | |
142 | - if(is_null($theme)) { |
|
142 | + if (is_null($theme)) { |
|
143 | 143 | $theme = 'adminlte'; |
144 | 144 | } |
145 | 145 | |
146 | 146 | $returnView = "{$package}::{$theme}.{$view}"; |
147 | - if(!view()->exists($returnView)){ |
|
147 | + if (!view()->exists($returnView)) { |
|
148 | 148 | $returnView = "{$package}::{$view}"; |
149 | 149 | } |
150 | 150 | |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | { |
165 | 165 | $theme = config('backpack.base.theme'); |
166 | 166 | |
167 | - if(is_null($theme)) { |
|
167 | + if (is_null($theme)) { |
|
168 | 168 | $theme = 'adminlte'; |
169 | 169 | } |
170 | 170 |