Skip to content
Merged

Fix typo #21843

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions lib/internal/Magento/Framework/Oauth/Oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Magento\Framework\Encryption\Helper\Security;
use Magento\Framework\Phrase;

/**
* Authorization service.
*/
class Oauth implements OauthInterface
{
/**
Expand Down Expand Up @@ -61,7 +64,7 @@ public static function getSupportedSignatureMethods()
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getRequestToken($params, $requestUrl, $httpMethod = 'POST')
{
Expand All @@ -74,7 +77,7 @@ public function getRequestToken($params, $requestUrl, $httpMethod = 'POST')
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getAccessToken($params, $requestUrl, $httpMethod = 'POST')
{
Expand Down Expand Up @@ -102,7 +105,7 @@ public function getAccessToken($params, $requestUrl, $httpMethod = 'POST')
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function validateAccessTokenRequest($params, $requestUrl, $httpMethod = 'POST')
{
Expand All @@ -125,15 +128,15 @@ public function validateAccessTokenRequest($params, $requestUrl, $httpMethod = '
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function validateAccessToken($accessToken)
{
return $this->_tokenProvider->validateAccessToken($accessToken);
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function buildAuthorizationHeader(
$params,
Expand Down Expand Up @@ -199,7 +202,7 @@ protected function _validateSignature($params, $consumerSecret, $httpMethod, $re
);

if (!Security::compareStrings($calculatedSign, $params['oauth_signature'])) {
throw new Exception(new Phrase('The signatire is invalid. Verify and try again.'));
throw new Exception(new Phrase('The signature is invalid. Verify and try again.'));
}
}

Expand Down