Reputation: 11
How to fix this?
Before (exactly what is needed):
After (what I get when formatting the code):
$response->assertOk()
->assertJson(fn(AssertableJson $json) =>
$json->has('data', fn($json) =>
$json->whereType('id', 'integer')
->whereType('created_at', 'string')
->whereType('updated_at', 'string')
->whereType('snils', 'string')
->has('passport', fn($json) =>
$json->whereType('id', 'integer')
->whereType('created_at', 'string')
->whereType('updated_at', 'string')
->whereType('series', 'string|null')
->whereType('number', 'string|null')
->whereType('lastName', 'string|null')
->whereType('firstName', 'string|null')
->whereType('middleName', 'string|null')
->whereType('gender', 'string|null')
->whereType('birthDate', 'string|null')
->whereType('request_data', 'array|null')
)
->whereType('request_data', 'array|null')
->etc()
)
);
added copy code
Upvotes: 0
Views: 136