@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace NukaCode\Users\Http\Controllers; |
| 4 | 4 | |
| 5 | -use App\Http\Controllers\BaseController; |
|
| 6 | -use App\Models\User; |
|
| 7 | -use Illuminate\Support\Facades\DB; |
|
| 8 | -use NukaCode\Users\Events\UserLoggedIn; |
|
| 9 | -use NukaCode\Users\Events\UserRegistered; |
|
| 10 | -use NukaCode\Users\Http\Requests\Login; |
|
| 5 | +use App\Http\Controllers\BaseController; |
|
| 6 | +use App\Models\User; |
|
| 7 | +use Illuminate\Support\Facades\DB; |
|
| 8 | +use NukaCode\Users\Events\UserLoggedIn; |
|
| 9 | +use NukaCode\Users\Events\UserRegistered; |
|
| 10 | +use NukaCode\Users\Http\Requests\Login; |
|
| 11 | 11 | use NukaCode\Users\Http\Requests\Registration; |
| 12 | 12 | |
| 13 | 13 | class AuthController extends BaseController |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @param null|string $provider |
| 61 | 61 | * |
| 62 | - * @return mixed |
|
| 62 | + * @return \Illuminate\Http\RedirectResponse |
|
| 63 | 63 | */ |
| 64 | 64 | public function callback($provider = null) |
| 65 | 65 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @param $socialUser |
| 91 | 91 | * |
| 92 | - * @return mixed |
|
| 92 | + * @return \NukaCode\Users\Models\User |
|
| 93 | 93 | */ |
| 94 | 94 | private function register($socialUser) |
| 95 | 95 | { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * Log the user out. |
| 118 | 118 | * |
| 119 | - * @return mixed |
|
| 119 | + * @return \Illuminate\Http\RedirectResponse |
|
| 120 | 120 | */ |
| 121 | 121 | public function logout() |
| 122 | 122 | { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * Find the provider's driver, scopes and extras based on a given provider name. |
| 131 | 131 | * |
| 132 | - * @param $provider |
|
| 132 | + * @param null|string $provider |
|
| 133 | 133 | * |
| 134 | 134 | * @throws \Exception |
| 135 | 135 | */ |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php namespace NukaCode\Users\Providers; |
| 2 | 2 | |
| 3 | -use Config; |
|
| 4 | 3 | use Illuminate\Support\ServiceProvider; |
| 5 | 4 | |
| 6 | 5 | class UsersServiceProvider extends ServiceProvider |