@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function hasSession() |
| 102 | 102 | { |
| 103 | - return (bool) Session::get(Config::get('chocolatey.security.session')); |
|
| 103 | + return (bool)Session::get(Config::get('chocolatey.security.session')); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function filterName(string $userName): bool |
| 122 | 122 | { |
| 123 | - return (count(array_filter(Config::get('chocolatey.invalid'), function ($username) use ($userName) { |
|
| 123 | + return (count(array_filter(Config::get('chocolatey.invalid'), function($username) use ($userName) { |
|
| 124 | 124 | return stripos($userName, $username) !== false; |
| 125 | 125 | })) == 0) && strlen($userName) <= 50 && strlen($userName) >= 4; |
| 126 | 126 | } |