@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
| 9 | 9 | use Symfony\Component\HttpKernel\Exception\HttpException; |
| 10 | 10 | use Laravel\Lumen\Exceptions\Handler as ExceptionHandler; |
| 11 | - |
|
| 12 | 11 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 13 | 12 | use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException; |
| 14 | 13 | |
@@ -21,7 +21,6 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Return a JSON response for error. |
| 23 | 23 | * |
| 24 | - * @param array $data |
|
| 25 | 24 | * @param string $code |
| 26 | 25 | * @return \Illuminate\Http\JsonResponse |
| 27 | 26 | */ |
@@ -33,7 +32,7 @@ discard block |
||
| 33 | 32 | * Check if the user is authorized to perform a given action on a resource. |
| 34 | 33 | * |
| 35 | 34 | * @param \Illuminate\Http\Request $request |
| 36 | - * @param array $resource |
|
| 35 | + * @param string $resource |
|
| 37 | 36 | * @param mixed|array $arguments |
| 38 | 37 | * @return boolean |
| 39 | 38 | * @see https://lumen.laravel.com/docs/authorization |
@@ -67,9 +66,6 @@ discard block |
||
| 67 | 66 | * Get current authorized user id. |
| 68 | 67 | * This method should be called only after validating the access token using OAuthMiddleware Middleware. |
| 69 | 68 | * |
| 70 | - * @param \Illuminate\Http\Request $request |
|
| 71 | - * @param array $resource |
|
| 72 | - * @param array $data |
|
| 73 | 69 | * @return boolean |
| 74 | 70 | * |
| 75 | 71 | * @throws LucaDegasperi\OAuth2Server\Exceptions\NoActiveAccessTokenException |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use App\Post; |
| 4 | 4 | use App\Comment; |
| 5 | - |
|
| 6 | 5 | use Illuminate\Http\Request; |
| 7 | 6 | |
| 8 | 7 | class PostCommentController extends Controller{ |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace App\Http\Controllers; |
| 2 | 2 | |
| 3 | 3 | use App\Post; |
| 4 | - |
|
| 5 | 4 | use Illuminate\Http\Request; |
| 6 | 5 | |
| 7 | 6 | class PostController extends Controller{ |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace App\Http\Controllers; |
| 2 | 2 | |
| 3 | 3 | use App\User; |
| 4 | - |
|
| 5 | 4 | use Illuminate\Http\Request; |
| 6 | 5 | use Illuminate\Support\Facades\Hash; |
| 7 | 6 | |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace App\Listeners; |
| 4 | 4 | |
| 5 | 5 | use App\Events\ExampleEvent; |
| 6 | -use Illuminate\Queue\InteractsWithQueue; |
|
| 7 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 8 | 6 | |
| 9 | 7 | class ExampleListener |
| 10 | 8 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Illuminate\Database\Eloquent\Model; |
| 8 | 8 | use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; |
| 9 | 9 | use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; |
| 10 | - |
|
| 11 | 10 | use Illuminate\Support\Facades\Hash; |
| 12 | 11 | |
| 13 | 12 | class User extends Model implements AuthenticatableContract, AuthorizableContract{ |