@@ -39,9 +39,13 @@ |
||
| 39 | 39 | return new \Acacha\AdminLTETemplateLaravel\AdminLTE(); |
| 40 | 40 | }); |
| 41 | 41 | |
| 42 | - if (config('adminlte.gravatar',true)) $this->registerGravatarServiceProvider(); |
|
| 42 | + if (config('adminlte.gravatar',true)) { |
|
| 43 | + $this->registerGravatarServiceProvider(); |
|
| 44 | + } |
|
| 43 | 45 | |
| 44 | - if (config('adminlte.guestuser',true)) $this->registerGuestUserProvider(); |
|
| 46 | + if (config('adminlte.guestuser',true)) { |
|
| 47 | + $this->registerGuestUserProvider(); |
|
| 48 | + } |
|
| 45 | 49 | |
| 46 | 50 | } |
| 47 | 51 | |
@@ -16,9 +16,13 @@ |
||
| 16 | 16 | * @return mixed|null|string |
| 17 | 17 | */ |
| 18 | 18 | public function username() { |
| 19 | - if (($username = env('ADMIN_USERNAME', null)) != null) return $username; |
|
| 19 | + if (($username = env('ADMIN_USERNAME', null)) != null) { |
|
| 20 | + return $username; |
|
| 21 | + } |
|
| 20 | 22 | |
| 21 | - if (($username = git_user_name()) != null) return $username; |
|
| 23 | + if (($username = git_user_name()) != null) { |
|
| 24 | + return $username; |
|
| 25 | + } |
|
| 22 | 26 | |
| 23 | 27 | return "Admin"; |
| 24 | 28 | } |
@@ -41,7 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function passwordInfo() |
| 43 | 43 | { |
| 44 | - if (env('ADMIN_PWD', '123456') == '123456') return 'with password 123456'; |
|
| 44 | + if (env('ADMIN_PWD', '123456') == '123456') { |
|
| 45 | + return 'with password 123456'; |
|
| 46 | + } |
|
| 45 | 47 | return 'with the environemnt password (env var ADMIN_PWD)'; |
| 46 | 48 | } |
| 47 | 49 | } |
@@ -17,9 +17,13 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | protected function email() |
| 19 | 19 | { |
| 20 | - if (($email = env('ADMIN_EMAIL', null)) != null) return $email; |
|
| 20 | + if (($email = env('ADMIN_EMAIL', null)) != null) { |
|
| 21 | + return $email; |
|
| 22 | + } |
|
| 21 | 23 | |
| 22 | - if (($email = git_user_email()) != null) return $email; |
|
| 24 | + if (($email = git_user_email()) != null) { |
|
| 25 | + return $email; |
|
| 26 | + } |
|
| 23 | 27 | |
| 24 | 28 | return "[email protected]"; |
| 25 | 29 | } |