Skip to content

Commit

Permalink
Syntax improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbilbie committed Dec 3, 2014
1 parent 92404ab commit b8331d1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/AuthorizationServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function addGrantType(GrantTypeInterface $grantType, $identifier = null)

/**
* Check if a grant type has been enabled
* @param string $identifier The grant type identifier
* @param string $identifier The grant type identifier
* @return boolean Returns "true" if enabled, "false" if not
*/
public function hasGrantType($identifier)
Expand Down Expand Up @@ -247,7 +247,7 @@ public function issueAccessToken()

/**
* Return a grant type class
* @param string $grantType The grant type identifier
* @param string $grantType The grant type identifier
* @return Grant\GrantTypeInterface
* @throws
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Grant/AbstractGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function getAccessTokenTTL()

/**
* Override the default access token expire time
* @param int $accessTokenTTL
* @param int $accessTokenTTL
* @return self
*/
public function setAccessTokenTTL($accessTokenTTL)
Expand All @@ -114,9 +114,9 @@ public function setAuthorizationServer(AuthorizationServer $server)

/**
* Given a list of scopes, validate them and return an array of Scope entities
* @param string $scopeParam A string of scopes (e.g. "profile email birthday")
* @param \League\OAuth2\Server\Entity\ClientEntity $client Client entity
* @param string|null $redirectUri The redirect URI to return the user to
* @param string $scopeParam A string of scopes (e.g. "profile email birthday")
* @param \League\OAuth2\Server\Entity\ClientEntity $client Client entity
* @param string|null $redirectUri The redirect URI to return the user to
* @return \League\OAuth2\Server\Entity\ScopeEntity[]
* @throws \League\OAuth2\Server\Exception\InvalidScopeException If scope is invalid, or no scopes passed when required
* @throws
Expand Down
12 changes: 6 additions & 6 deletions src/Grant/AuthCodeGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AuthCodeGrant extends AbstractGrant

/**
* Override the default access token expire time
* @param int $authTokenTTL
* @param int $authTokenTTL
* @return void
*/
public function setAuthTokenTTL($authTokenTTL)
Expand Down Expand Up @@ -118,11 +118,11 @@ public function checkAuthorizeParams()
$scopes = $this->validateScopes($scopeParam, $client, $redirectUri);

return [
'client' => $client,
'redirect_uri' => $redirectUri,
'state' => $state,
'response_type' => $responseType,
'scopes' => $scopes
'client' => $client,
'redirect_uri' => $redirectUri,
'state' => $state,
'response_type' => $responseType,
'scopes' => $scopes
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Grant/PasswordGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function setVerifyCredentialsCallback(callable $callback)
*/
protected function getVerifyCredentialsCallback()
{
if (is_null($this->callback) || ! is_callable($this->callback)) {
if (is_null($this->callback) || !is_callable($this->callback)) {
throw new Exception\ServerErrorException('Null or non-callable callback set on Password grant');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Grant/RefreshTokenGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RefreshTokenGrant extends AbstractGrant

/**
* Set the TTL of the refresh token
* @param int $refreshTokenTTL
* @param int $refreshTokenTTL
* @return void
*/
public function setRefreshTokenTTL($refreshTokenTTL)
Expand Down

0 comments on commit b8331d1

Please sign in to comment.