Removed null as default for parameters

This commit is contained in:
Alex Bilbie 2013-05-08 19:36:00 -07:00
parent 8b154054c3
commit dbe21cc5a7
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ class AuthCode implements GrantTypeInterface {
} }
// Validate client ID and redirect URI // Validate client ID and redirect URI
$clientDetails = $this->authServer->getStorage('client')->getClient($authParams['client_id'], null, $authParams['redirect_uri']); $clientDetails = $this->authServer->getStorage('client')->getClient($authParams['client_id'], null, $authParams['redirect_uri'], $this->identifier);
if ($clientDetails === false) { if ($clientDetails === false) {
throw new Exception\ClientException($this->authServer->getExceptionMessage('invalid_client'), 8); throw new Exception\ClientException($this->authServer->getExceptionMessage('invalid_client'), 8);

View File

@ -53,5 +53,5 @@ interface ClientInterface
* @param string $grantType The grant type used in the request * @param string $grantType The grant type used in the request
* @return bool|array Returns false if the validation fails, array on success * @return bool|array Returns false if the validation fails, array on success
*/ */
public function getClient($clientId = null, $clientSecret = null, $redirectUri = null, $grantType = null); public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType);
} }

View File

@ -6,7 +6,7 @@ use League\OAuth2\Server\Storage\ClientInterface;
class Client implements ClientInterface class Client implements ClientInterface
{ {
public function getClient($clientId = null, $clientSecret = null, $redirectUri = null, $grantType = null) public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType)
{ {
$db = \ezcDbInstance::get(); $db = \ezcDbInstance::get();