@@ -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 |
@@ -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 |