File tree 8 files changed +17
-25
lines changed
8 files changed +17
-25
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ public function __construct(
23
23
public string $ mobile_country_code ,
24
24
public string $ mobile_network_code ,
25
25
public string $ type ,
26
- ) {
27
- }
26
+ ) {}
28
27
29
28
public static function fake (
30
29
?string $ error_code = null ,
Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ public static function fromJson(array $lookup): ?self
17
17
);
18
18
}
19
19
20
- public function __construct (public Carrier $ carrier )
21
- {
22
- }
20
+ public function __construct (public Carrier $ carrier ) {}
23
21
24
22
public static function fake (?Carrier $ carrier = null ): self
25
23
{
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ public function __construct(
24
24
public Carbon $ time ,
25
25
public string $ channel ,
26
26
public string $ attempt_sid ,
27
- ) {
28
- }
27
+ ) {}
29
28
30
29
public static function fake (
31
30
?Carbon $ time = null ,
@@ -35,7 +34,7 @@ public static function fake(
35
34
return new static (
36
35
time: $ time ?? now (),
37
36
channel: $ channel ?? 'sms ' ,
38
- attempt_sid: $ attempt_sid ?? 'VL ' . Str::random (32 ),
37
+ attempt_sid: $ attempt_sid ?? 'VL ' . Str::random (32 ),
39
38
);
40
39
}
41
40
}
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ public function __construct(
33
33
public bool $ valid ,
34
34
public Carbon $ created_at ,
35
35
public Carbon $ updated_at ,
36
- ) {
37
- }
36
+ ) {}
38
37
39
38
public static function fake (
40
39
?string $ sid = null ,
@@ -48,9 +47,9 @@ public static function fake(
48
47
?string $ updated_at = null ,
49
48
): self {
50
49
return new static (
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 ),
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 ),
54
53
to: $ to ?? '+41795555825 ' ,
55
54
channel: $ channel ?? 'sms ' ,
56
55
status: $ status ?? 'approved ' ,
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ public function __construct(
43
43
public ?Lookup $ lookup ,
44
44
public Collection $ send_code_attempts ,
45
45
public string $ url ,
46
- ) {
47
- }
46
+ ) {}
48
47
49
48
public static function fake (
50
49
?string $ sid = null ,
@@ -60,12 +59,12 @@ public static function fake(
60
59
?Collection $ send_code_attempts = null ,
61
60
?string $ url = null ,
62
61
): self {
63
- $ service = 'VA ' . Str::random (32 );
62
+ $ service = 'VA ' . Str::random (32 );
64
63
65
64
return new static (
66
- sid: $ sid ?? 'VE ' . Str::random (32 ),
65
+ sid: $ sid ?? 'VE ' . Str::random (32 ),
67
66
service_sid: $ service_sid ?? $ service ,
68
- account_sid: $ account_sid ?? 'AC ' . Str::random (32 ),
67
+ account_sid: $ account_sid ?? 'AC ' . Str::random (32 ),
69
68
to: $ to ?? '+41795555825 ' ,
70
69
channel: $ channel ?? 'sms ' ,
71
70
status: $ status ?? 'pending ' ,
Original file line number Diff line number Diff line change @@ -13,7 +13,5 @@ class TwilioVerifyResponseLog
13
13
use InteractsWithSockets;
14
14
use SerializesModels;
15
15
16
- public function __construct (public Response $ response )
17
- {
18
- }
16
+ public function __construct (public Response $ response ) {}
19
17
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function it_does_start_a_verification_with_sms()
18
18
Event::fake ();
19
19
$ phoneNumber = '+12085059915 ' ;
20
20
21
- $ verification = (new TwilioVerify () )->start (to: $ phoneNumber );
21
+ $ verification = (new TwilioVerify )->start (to: $ phoneNumber );
22
22
23
23
$ this ->assertInstanceOf (VerificationStart::class, $ verification );
24
24
$ this ->assertSame ($ phoneNumber , $ verification ->to );
@@ -37,7 +37,7 @@ public function it_does_check_a_verification_with_sms()
37
37
$ code = '4804 ' ;
38
38
$ phoneNumber = '+12085059915 ' ;
39
39
40
- $ verification = (new TwilioVerify () )->check (
40
+ $ verification = (new TwilioVerify )->check (
41
41
to: $ phoneNumber ,
42
42
code: $ code ,
43
43
);
Original file line number Diff line number Diff line change 8
8
9
9
class TestCase extends Orchestra
10
10
{
11
- public function setUp (): void
11
+ protected function setUp (): void
12
12
{
13
13
parent ::setUp ();
14
14
15
15
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 ' ,
17
17
);
18
18
}
19
19
You can’t perform that action at this time.
0 commit comments