Docblock fixes

This commit is contained in:
Alex Bilbie 2014-11-07 01:25:13 +00:00
parent 293bc52972
commit d23dc4d247
5 changed files with 11 additions and 12 deletions

View File

@ -108,7 +108,7 @@ abstract class AbstractGrant implements GrantTypeInterface
/** /**
* Inject the authorization server into the grant * Inject the authorization server into the grant
* @param AuthorizationServer $server The authorization server instance * @param \League\OAuth2\Server\AuthorizationServer $server The authorization server instance
* @return self * @return self
*/ */
public function setAuthorizationServer(AuthorizationServer $server) public function setAuthorizationServer(AuthorizationServer $server)
@ -119,11 +119,11 @@ abstract class AbstractGrant implements GrantTypeInterface
} }
/** /**
* Given a list of scopes, validate them and return an arrary of Scope entities * 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 string $scopeParam A string of scopes (e.g. "profile email birthday")
* @param ClientEntity $client A string of scopes (e.g. "profile email birthday") * @param \League\OAuth2\Server\Entity\ClientEntity $client A string of scopes (e.g. "profile email birthday")
* @return array * @return \League\OAuth2\Server\Entity\ScopeEntity[]
* @throws ClientException If scope is invalid, or no scopes passed when required * @throws \League\OAuth2\Server\Exception\ClientException If scope is invalid, or no scopes passed when required
*/ */
public function validateScopes($scopeParam = '', ClientEntity $client) public function validateScopes($scopeParam = '', ClientEntity $client)
{ {
@ -171,7 +171,7 @@ abstract class AbstractGrant implements GrantTypeInterface
/** /**
* Format the local scopes array * Format the local scopes array
* @param array $unformated Array of Array of \League\OAuth2\Server\Entity\ScopeEntity * @param \League\OAuth2\Server\Entity\ScopeEntity[]
* @return array * @return array
*/ */
protected function formatScopes($unformated = []) protected function formatScopes($unformated = [])

View File

@ -159,7 +159,7 @@ class AuthCodeGrant extends AbstractGrant
/** /**
* Complete the auth code grant * Complete the auth code grant
* @return array * @return \League\OAuth2\Server\TokenType\TokenTypeInterface
*/ */
public function completeFlow() public function completeFlow()
{ {

View File

@ -49,8 +49,7 @@ class ClientCredentialsGrant extends AbstractGrant
/** /**
* Complete the client credentials grant * Complete the client credentials grant
* @param null|array $inputParams * @return \League\OAuth2\Server\TokenType\TokenTypeInterface
* @return array
*/ */
public function completeFlow() public function completeFlow()
{ {

View File

@ -18,7 +18,7 @@ interface GrantTypeInterface
{ {
/** /**
* Complete the grant flow * Complete the grant flow
* @return array * @return \League\OAuth2\Server\TokenType\TokenTypeInterface
*/ */
public function completeFlow(); public function completeFlow();
} }

View File

@ -73,7 +73,7 @@ class PasswordGrant extends AbstractGrant
/** /**
* Complete the password grant * Complete the password grant
* @return array * @return \League\OAuth2\Server\TokenType\TokenTypeInterface
*/ */
public function completeFlow() public function completeFlow()
{ {