@@ -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 {
|
@@ -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 |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @param \Illuminate\Http\Request $request |
| 52 | 52 | * |
| 53 | - * @return mixed |
|
| 53 | + * @return \Illuminate\Http\RedirectResponse |
|
| 54 | 54 | */ |
| 55 | 55 | public function callback(Request $request) |
| 56 | 56 | { |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @param $socialUser |
| 76 | 76 | * |
| 77 | - * @return mixed |
|
| 77 | + * @return \NukaCode\Users\Models\User |
|
| 78 | 78 | */ |
| 79 | 79 | private function register($socialUser) |
| 80 | 80 | { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | /** |
| 102 | 102 | * Log the user out. |
| 103 | 103 | * |
| 104 | - * @return mixed |
|
| 104 | + * @return \Illuminate\Http\RedirectResponse |
|
| 105 | 105 | */ |
| 106 | 106 | public function logout() |
| 107 | 107 | { |