Skip to content

Commit

Permalink
Clean up docblocs
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Nov 30, 2018
1 parent 3a61392 commit 55c1c54
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/Http/Controllers/AuthorizationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
use Laravel\Passport\Bridge\User;
use Laravel\Passport\TokenRepository;
use Laravel\Passport\ClientRepository;
use Illuminate\Database\Eloquent\Model;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response as Psr7Response;
use League\OAuth2\Server\AuthorizationServer;
use Illuminate\Contracts\Routing\ResponseFactory;
use League\OAuth2\Server\RequestTypes\AuthorizationRequest;

class AuthorizationController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/AuthorizedAccessTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(TokenRepository $tokenRepository)
* Get all of the authorized tokens for the authenticated user.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
* @return \Illuminate\Database\Eloquent\Collection
*/
public function forUser(Request $request)
{
Expand Down
1 change: 0 additions & 1 deletion src/Http/Controllers/ConvertsPsrResponses.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace Laravel\Passport\Http\Controllers;

use Illuminate\Http\Response;
use Psr\Http\Message\ResponseInterface;

trait ConvertsPsrResponses
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Controllers/PersonalAccessTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Http\Response;
use Laravel\Passport\Passport;
use Laravel\Passport\TokenRepository;
use Laravel\Passport\PersonalAccessTokenResult;
use Illuminate\Contracts\Validation\Factory as ValidationFactory;

class PersonalAccessTokenController
Expand Down Expand Up @@ -42,7 +41,7 @@ public function __construct(TokenRepository $tokenRepository, ValidationFactory
* Get all of the personal access tokens for the authenticated user.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
* @return \Illuminate\Database\Eloquent\Collection
*/
public function forUser(Request $request)
{
Expand Down
5 changes: 2 additions & 3 deletions src/Http/Middleware/CheckClientCredentialsForAnyScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(ResourceServer $server)
* @param \Closure $next
* @param mixed ...$scopes
* @return mixed
* @throws \Illuminate\Auth\AuthenticationException
* @throws \Illuminate\Auth\AuthenticationException|\Laravel\Passport\Exceptions\MissingScopeException
*/
public function handle($request, Closure $next, ...$scopes)
{
Expand All @@ -58,10 +58,9 @@ public function handle($request, Closure $next, ...$scopes)
/**
* Validate the scopes on the incoming request.
*
* @param \Psr\Http\Message\ResponseInterface $psr
* @param \Psr\Http\Message\ServerRequestInterface $psr
* @param array $scopes
* @return bool
* @throws \Laravel\Passport\Exceptions\MissingScopeException
*/
protected function validateScopes($psr, $scopes)
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Middleware/CheckScopes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class CheckScopes
* @param \Closure $next
* @param mixed ...$scopes
* @return \Illuminate\Http\Response
* @throws \Illuminate\Auth\AuthenticationException
* @throws \Laravel\Passport\Exceptions\MissingScopeException
* @throws \Illuminate\Auth\AuthenticationException|\Laravel\Passport\Exceptions\MissingScopeException
*/
public function handle($request, $next, ...$scopes)
{
Expand Down

0 comments on commit 55c1c54

Please sign in to comment.