Skip to content

Commit 821d8d4

Browse files
committed
fix: fix minor bugs
1 parent 792f35b commit 821d8d4

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/code/core/Mage/Api2/Model/Auth/Adapter/Oauth2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function getUserParams(Mage_Api2_Model_Request $request)
5252
* Validate the OAuth2 token
5353
*
5454
* @param Mage_Api2_Model_Request $request
55-
* @return Mage_Oauth2_Model_Token
55+
* @return Mage_Oauth2_Model_AccessToken
5656
* @throws Exception
5757
*/
5858
protected function _validateToken(Mage_Api2_Model_Request $request)

app/code/core/Mage/Oauth2/Helper/Data.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public function generateClientSecret($length = 40)
1717
/**
1818
* Generate a token
1919
*
20-
* @param string $clientId The client ID
2120
* @param int $length The length of the token (default: 40)
2221
* @return string The generated token
2322
* @throws Exception if unable to generate random bytes

app/code/core/Mage/Oauth2/Model/AccessToken.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected function _construct()
1313
/**
1414
* Get user type associated with the token
1515
*
16-
* @return string
16+
* @return string|null
1717
* @throws Mage_Core_Exception
1818
*/
1919
public function getUserType()

0 commit comments

Comments
 (0)