Skip to content

Indentation issue #36

@artrz

Description

@artrz

When inserting the generated code, indentation is taken from the line the variable is, which may not be correct. E.g.:

readonly class MyDTO
{
    public function __construct(
        ...
        private ?string $firstName,
        ...
    ) {
    }

        public function getFirstName(): ?string // <--- indentation is 8 spaces
        {
                return $this->firstName;
        }
}

Could it be possible to add a setting to override the automatic indentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions