Skip to content

Commit 3ef4adc

Browse files
Deyjandiactions-user
authored andcommitted
Fix styling
1 parent b0f0021 commit 3ef4adc

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/VivaWalletPayment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function setAmount(int $amount): static
161161

162162
public function setCustomerTrns(?string $customerTrns): static
163163
{
164-
if (!$customerTrns && strlen($customerTrns) > 2048) {
164+
if (! $customerTrns && strlen($customerTrns) > 2048) {
165165
throw new InvalidArgumentException('CustomerTrns length must be less than or equal to 2048.');
166166
}
167167

@@ -279,7 +279,7 @@ public function setTags(?array $tags): static
279279
{
280280
if ($tags) {
281281
collect($tags)->each(function (mixed $tag) {
282-
if (!is_string($tag)) {
282+
if (! is_string($tag)) {
283283
throw new InvalidArgumentException('tags must be an array of strings.');
284284
}
285285
});

src/VivaWalletToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private function requestToken(): static
109109

110110
public static function getInstance(): static
111111
{
112-
return Cache::get(self::CACHE_KEY) ?? (new self)->requestToken();
112+
return Cache::get(self::CACHE_KEY) ?? (new self())->requestToken();
113113
}
114114

115115
public function refresh(): static

src/VivaWalletTransaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(array $config)
2424
*/
2525
public function retrieve(string $transactionId): array
2626
{
27-
if (!Uuid::isValid($transactionId)) {
27+
if (! Uuid::isValid($transactionId)) {
2828
throw new InvalidArgumentException('Transaction id is invalid.');
2929
}
3030

src/VivaWalletWebhook.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
class VivaWalletWebhook
99
{
10-
use HasClient, HasEnv;
10+
use HasClient;
11+
use HasEnv;
1112

1213
private string $merchantId;
1314

@@ -57,7 +58,7 @@ public function requestKey(): string
5758

5859
public function verifyEndpointResponse(): array
5960
{
60-
if (!$this->webhookKey) {
61+
if (! $this->webhookKey) {
6162
// @todo use custom exception class
6263
throw new \Exception('Webhook verification key not set.');
6364
}

0 commit comments

Comments
 (0)