File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
lib/internal/Magento/Framework/Oauth/Helper Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \Framework \Oauth \Helper ;
9
9
10
10
use Laminas \OAuth \Http \Utility as LaminasUtility ;
11
- use Magento \Framework \Oauth \Helper \Signature \Hmac ;
12
11
use Magento \Framework \Oauth \Helper \Signature \HmacFactory ;
13
12
14
13
class Utility
@@ -41,8 +40,12 @@ public function sign(
41
40
?string $ url = null
42
41
): string {
43
42
if ($ this ->isHmac256 ($ signatureMethod )) {
44
- /** @var Hmac $hmac */
45
- $ hmac = $ this ->hmacFactory ->create (['consumerSecret ' => $ consumerSecret , 'tokenSecret ' => $ tokenSecret , 'hashAlgo ' => 'sha256 ' ]);
43
+ $ hmac = $ this ->hmacFactory ->create (
44
+ ['consumerSecret ' => $ consumerSecret ,
45
+ 'tokenSecret ' => $ tokenSecret ,
46
+ 'hashAlgo ' => 'sha256 '
47
+ ]
48
+ );
46
49
47
50
return $ hmac ->sign ($ params , $ method , $ url );
48
51
} else {
You can’t perform that action at this time.
0 commit comments