Skip to content

Commit 2723eef

Browse files
RhysLeesgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 36d7248 commit 2723eef

7 files changed

+22
-14
lines changed

src/DTO/Carrier.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function __construct(
2323
public string $mobile_country_code,
2424
public string $mobile_network_code,
2525
public string $type,
26-
) {}
26+
) {
27+
}
2728

2829
public static function fake(
2930
?string $error_code = null,

src/DTO/Lookup.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public static function fromJson(array $lookup): ?self
1717
);
1818
}
1919

20-
public function __construct(public Carrier $carrier) {}
20+
public function __construct(public Carrier $carrier)
21+
{
22+
}
2123

2224
public static function fake(?Carrier $carrier = null): self
2325
{

src/DTO/SendCodeAttempt.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public function __construct(
2424
public Carbon $time,
2525
public string $channel,
2626
public string $attempt_sid,
27-
) {}
27+
) {
28+
}
2829

2930
public static function fake(
3031
?Carbon $time = null,
@@ -34,7 +35,7 @@ public static function fake(
3435
return new static(
3536
time: $time ?? now(),
3637
channel: $channel ?? 'sms',
37-
attempt_sid: $attempt_sid ?? 'VL'.Str::random(32),
38+
attempt_sid: $attempt_sid ?? 'VL' . Str::random(32),
3839
);
3940
}
4041
}

src/DTO/VerificationCheck.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public function __construct(
3333
public bool $valid,
3434
public Carbon $created_at,
3535
public Carbon $updated_at,
36-
) {}
36+
) {
37+
}
3738

3839
public static function fake(
3940
?string $sid = null,
@@ -47,9 +48,9 @@ public static function fake(
4748
?string $updated_at = null,
4849
): self {
4950
return new static(
50-
sid: $sid ?? 'VE'.Str::random(32),
51-
service_sid: $service_sid ?? 'VA'.Str::random(32),
52-
account_sid: $account_sid ?? 'AC'.Str::random(32),
51+
sid: $sid ?? 'VE' . Str::random(32),
52+
service_sid: $service_sid ?? 'VA' . Str::random(32),
53+
account_sid: $account_sid ?? 'AC' . Str::random(32),
5354
to: $to ?? '+41795555825',
5455
channel: $channel ?? 'sms',
5556
status: $status ?? 'approved',

src/DTO/VerificationStart.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public function __construct(
4343
public ?Lookup $lookup,
4444
public Collection $send_code_attempts,
4545
public string $url,
46-
) {}
46+
) {
47+
}
4748

4849
public static function fake(
4950
?string $sid = null,
@@ -59,12 +60,12 @@ public static function fake(
5960
?Collection $send_code_attempts = null,
6061
?string $url = null,
6162
): self {
62-
$service = 'VA'.Str::random(32);
63+
$service = 'VA' . Str::random(32);
6364

6465
return new static(
65-
sid: $sid ?? 'VE'.Str::random(32),
66+
sid: $sid ?? 'VE' . Str::random(32),
6667
service_sid: $service_sid ?? $service,
67-
account_sid: $account_sid ?? 'AC'.Str::random(32),
68+
account_sid: $account_sid ?? 'AC' . Str::random(32),
6869
to: $to ?? '+41795555825',
6970
channel: $channel ?? 'sms',
7071
status: $status ?? 'pending',

src/Events/TwilioVerifyResponseLog.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ class TwilioVerifyResponseLog
1313
use InteractsWithSockets;
1414
use SerializesModels;
1515

16-
public function __construct(public Response $response) {}
16+
public function __construct(public Response $response)
17+
{
18+
}
1719
}

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected function setUp(): void
1313
parent::setUp();
1414

1515
Factory::guessFactoryNamesUsing(
16-
fn (string $modelName) => 'Spatie\\TwilioVerify\\Database\\Factories\\'.class_basename($modelName).'Factory',
16+
fn (string $modelName) => 'Spatie\\TwilioVerify\\Database\\Factories\\' . class_basename($modelName) . 'Factory',
1717
);
1818
}
1919

0 commit comments

Comments
 (0)