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