Skip to content

Commit

Permalink
ENGCOM-4536: Fix typo #21843
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Mar 22, 2019
2 parents 03197e9 + b21a646 commit 20a3619
Showing 1 changed file with 9 additions and 6 deletions.
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

0 comments on commit 20a3619

Please sign in to comment.