From eb56e98e1697808ef0ef65d2b6682caffcbf5102 Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Thu, 21 Nov 2024 12:51:15 +0100 Subject: [PATCH] rollback formatting --- src/Handlers/HMAC/Hmac.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Handlers/HMAC/Hmac.php b/src/Handlers/HMAC/Hmac.php index 0bcd5db..5b3befb 100644 --- a/src/Handlers/HMAC/Hmac.php +++ b/src/Handlers/HMAC/Hmac.php @@ -28,7 +28,8 @@ abstract class Hmac */ public function uri($uri = null) { - if ($uri) { + if ($uri) + { $uri = preg_replace("#^[^:/.]*[:/]+#i", "", $uri); $this->uri = strtolower(urlencode($uri)); @@ -45,8 +46,10 @@ public function base64Data($data = null) { $this->base64Data = ''; - if ($data) { - if (is_array($data)) { + if ($data) + { + if (is_array($data)) + { $data = mb_convert_encoding( json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), 'UTF-8', @@ -68,7 +71,8 @@ public function base64Data($data = null) */ public function nonce($nonce = null) { - if ($nonce) { + if ($nonce) + { $this->nonce = $nonce; } @@ -81,7 +85,8 @@ public function nonce($nonce = null) */ public function time($time = null) { - if ($time) { + if ($time) + { $this->time = $time; }