Removed typecasting of parameters and tidied up appearance

This commit is contained in:
Alex Bilbie 2012-07-25 12:03:50 +01:00
parent 411cab1734
commit d5c8983293

View File

@ -243,9 +243,14 @@ maintenance of the server.'
* @param string $accessToken The access token (default = null) * @param string $accessToken The access token (default = null)
* @return string An authorisation code * @return string An authorisation code
*/ */
public function newAuthCode(string $clientId, $type = 'user', public function newAuthCode(
string $typeId, string $redirectUri, $scopes = array(), $clientId,
string $accessToken = null) $type = 'user',
$typeId,
$redirectUri,
$scopes = array(),
$accessToken = null
)
{ {
$authCode = $this->generateCode(); $authCode = $this->generateCode();