zadrog
zadrog

Reputation: 11

PhpStorm code style: align function parentheses

How to fix this?

Before (exactly what is needed):

enter image description here

After (what I get when formatting the code):

enter image description here

$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

Answers (1)

zadrog
zadrog

Reputation: 11

i found a solution to my problem

enter image description here

Upvotes: 1

Related Questions