Skip to content

Commit 0c735aa

Browse files
committed
fix: lint
1 parent 3fce5df commit 0c735aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/EasyPost/Util/Util.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public static function validateWebhook(mixed $eventBody, mixed $headers, string
9999
$easypostHmacSignature = $headers['X-Hmac-Signature'] ?? null;
100100

101101
if ($easypostHmacSignature != null) {
102+
/** @var string $normalizedSecret */
102103
$normalizedSecret = Normalizer::normalize($webhookSecret, Normalizer::FORM_KD);
103104
/** @var string $encodedSecret */
104105
$encodedSecret = mb_convert_encoding($normalizedSecret, 'UTF-8') ?: '';
@@ -192,7 +193,7 @@ public static function getLowestStatelessRate(array $statelessRates, array $carr
192193
}
193194

194195
if (!$lowestStatelessRate || floatval($statelessRates[$i]->rate) < floatval($lowestStatelessRate->rate)) {
195-
$lowestStatelessRate = clone ($statelessRates[$i]);
196+
$lowestStatelessRate = clone($statelessRates[$i]);
196197
}
197198
}
198199

0 commit comments

Comments
 (0)