File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 77
88class 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 }
You can’t perform that action at this time.
0 commit comments