@@ -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 | { |
@@ -82,7 +82,7 @@ |
||
82 | 82 | /** |
83 | 83 | * Get the services provided by the provider. |
84 | 84 | * |
85 | - * @return array |
|
85 | + * @return string[] |
|
86 | 86 | */ |
87 | 87 | public function provides() |
88 | 88 | { |
@@ -1,7 +1,5 @@ |
||
1 | 1 | <?php namespace NukaCode\Users; |
2 | 2 | |
3 | -use Config; |
|
4 | -use Illuminate\Foundation\AliasLoader; |
|
5 | 3 | use NukaCode\Core\BaseServiceProvider; |
6 | 4 | |
7 | 5 | class UsersServiceProvider extends BaseServiceProvider { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @param \Illuminate\Http\Request $request |
50 | 50 | * |
51 | - * @return mixed |
|
51 | + * @return \Illuminate\Http\RedirectResponse |
|
52 | 52 | */ |
53 | 53 | public function callback(Request $request) |
54 | 54 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * Log the user out. |
98 | 98 | * |
99 | - * @return mixed |
|
99 | + * @return \Illuminate\Http\RedirectResponse |
|
100 | 100 | */ |
101 | 101 | public function logout() |
102 | 102 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use App\Events\Event; |
6 | 6 | use Illuminate\Queue\SerializesModels; |
7 | -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; |
|
8 | 7 | |
9 | 8 | class UserRegistered extends Event |
10 | 9 | { |
@@ -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,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace NukaCode\Users\Http\Controllers; |
4 | 4 | |
5 | -use App\Http\Controllers\BaseController; |
|
6 | -use App\Models\User; |
|
7 | -use NukaCode\Users\Events\UserLoggedIn; |
|
8 | -use NukaCode\Users\Events\UserRegistered; |
|
9 | -use NukaCode\Users\Http\Requests\Login; |
|
5 | +use App\Http\Controllers\BaseController; |
|
6 | +use App\Models\User; |
|
7 | +use NukaCode\Users\Events\UserLoggedIn; |
|
8 | +use NukaCode\Users\Events\UserRegistered; |
|
9 | +use NukaCode\Users\Http\Requests\Login; |
|
10 | 10 | use NukaCode\Users\Http\Requests\Registration; |
11 | 11 | |
12 | 12 | class AuthController extends BaseController |