Skip to content

Commit

Permalink
rollback formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vildanbina committed Nov 21, 2024
1 parent 1ae9e59 commit eb56e98
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/Handlers/HMAC/Hmac.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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',
Expand All @@ -68,7 +71,8 @@ public function base64Data($data = null)
*/
public function nonce($nonce = null)
{
if ($nonce) {
if ($nonce)
{
$this->nonce = $nonce;
}

Expand All @@ -81,7 +85,8 @@ public function nonce($nonce = null)
*/
public function time($time = null)
{
if ($time) {
if ($time)
{
$this->time = $time;
}

Expand Down

0 comments on commit eb56e98

Please sign in to comment.