Skip to content

Commit

Permalink
fix: apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
hirale committed Nov 23, 2024
1 parent cada379 commit 6668603
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions app/code/core/Mage/Api2/Model/Auth/Adapter/Oauth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ class Mage_Api2_Model_Auth_Adapter_Oauth2 extends Mage_Api2_Model_Auth_Adapter_A
/**
* Process request and figure out an API user type and its identifier
*
* Returns Varien_Object with two properties: type and id
* Returns stdClass object with two properties: type and id
*
* @return stdClass
*/
public function getUserParams(Mage_Api2_Model_Request $request): Varien_Object
public function getUserParams(Mage_Api2_Model_Request $request)
{
$userParamsObj = new Varien_Object(['type' => null, 'id' => null]);
$userParamsObj = (object) ['type' => null, 'id' => null];

try {
$token = $this->_validateToken($request);
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Oauth2/Block/Adminhtml/Client/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

declare(strict_types=1);
declare(strict_types=1);

class Mage_Oauth2_Block_Adminhtml_Client_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

declare(strict_types=1);
declare(strict_types=1);

class Mage_Oauth2_Block_Adminhtml_Client_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
{
Expand Down

0 comments on commit 6668603

Please sign in to comment.