@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function register() |
| 20 | 20 | { |
| 21 | - $this->app->bind('azuresession', function () { |
|
| 21 | + $this->app->bind('azuresession', function() { |
|
| 22 | 22 | return Session::getInstance(); |
| 23 | 23 | }); |
| 24 | 24 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function boot() |
| 23 | 23 | { |
| 24 | - $this->app['auth']->viaRequest('api', function ($request) { |
|
| 24 | + $this->app['auth']->viaRequest('api', function($request) { |
|
| 25 | 25 | $userData = Session::has('ChocolateyWEB') ? Session::get('ChocolateyWEB') : null; |
| 26 | 26 | |
| 27 | 27 | return $request->path() == 'api/public/authentication/login' |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * |
| 89 | 89 | * @return User |
| 90 | 90 | */ |
| 91 | - protected function getUserFriendData(): ?User |
|
| 91 | + protected function getUserFriendData(): ? User |
|
| 92 | 92 | { |
| 93 | 93 | return User::find($this->attributes['user_two_id']); |
| 94 | 94 | } |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | * @param bool $newUser If is a New User |
| 183 | 183 | * @return User |
| 184 | 184 | */ |
| 185 | - public function createUser(Request $request, array $userInfo, bool $newUser = false): ?User |
|
| 185 | + public function createUser(Request $request, array $userInfo, bool $newUser = false): ? User |
|
| 186 | 186 | { |
| 187 | 187 | $userName = $newUser ? uniqid(strstr($userInfo['email'], '@', true)) : $userInfo['name']; |
| 188 | 188 | |