@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php namespace NukaCode\Users\Repositories; |
2 | 2 | |
3 | -use Illuminate\Events\Dispatcher; |
|
4 | -use Illuminate\Support\Facades\Session; |
|
5 | -use Laracasts\Commander\Events\EventGenerator; |
|
6 | -use NukaCode\Users\Events\UserWasCreated; |
|
7 | -use NukaCode\Core\Repositories\BaseRepository; |
|
8 | -use NukaCode\Core\Ajax\Ajax; |
|
9 | -use NukaCode\Core\View\Helpers\Crud; |
|
3 | +use Illuminate\Events\Dispatcher; |
|
4 | +use Illuminate\Support\Facades\Session; |
|
5 | +use Laracasts\Commander\Events\EventGenerator; |
|
6 | +use NukaCode\Users\Events\UserWasCreated; |
|
7 | +use NukaCode\Core\Repositories\BaseRepository; |
|
8 | +use NukaCode\Core\Ajax\Ajax; |
|
9 | +use NukaCode\Core\View\Helpers\Crud; |
|
10 | 10 | use NukaCode\Core\View\Image; |
11 | 11 | |
12 | 12 | class UserRepository extends BaseRepository { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * Assign the given role to the user. |
22 | 22 | * |
23 | 23 | * @param string $role |
24 | - * @return mixed |
|
24 | + * @return \Illuminate\Database\Eloquent\Model |
|
25 | 25 | */ |
26 | 26 | public function assignRole($role) |
27 | 27 | { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @param Registration $request |
63 | 63 | * |
64 | - * @return mixed |
|
64 | + * @return \Illuminate\Http\RedirectResponse |
|
65 | 65 | */ |
66 | 66 | public function handleRegister(Registration $request) |
67 | 67 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * Log the user out. |
86 | 86 | * |
87 | - * @return mixed |
|
87 | + * @return \Illuminate\Http\RedirectResponse |
|
88 | 88 | */ |
89 | 89 | public function logout() |
90 | 90 | { |
@@ -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 |
@@ -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 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @param null|string $provider |
59 | 59 | * |
60 | - * @return mixed |
|
60 | + * @return \Illuminate\Http\RedirectResponse |
|
61 | 61 | */ |
62 | 62 | public function callback($provider = null) |
63 | 63 | { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * Log the user out. |
116 | 116 | * |
117 | - * @return mixed |
|
117 | + * @return \Illuminate\Http\RedirectResponse |
|
118 | 118 | */ |
119 | 119 | public function logout() |
120 | 120 | { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | /** |
128 | 128 | * Find the provider's driver, scopes and extras based on a given provider name. |
129 | 129 | * |
130 | - * @param $provider |
|
130 | + * @param null|string $provider |
|
131 | 131 | * |
132 | 132 | * @throws \Exception |
133 | 133 | */ |