E
E
Evgeny Komarov2021-06-04 08:52:29
phpstorm
Evgeny Komarov, 2021-06-04 08:52:29

How to set attribute formatting in PHPStorm?

Hello! Tell me, can anyone come across, is there a way to set the transfer of parameters when using PHP attributes, like "Function declaration parameters -> Chop down if long"?
Now like this:

#[ORM\Column(type: Types::STRING, length: 100, unique: true, nullable: true, options: ['comment' => 'Довольно длинное описание колонки в БД'])]

I would like it to be like this:
#[ORM\Column(
    type: Types::STRING,
    length: 100,
    unique: true,
    nullable: true,
    options: ['comment' => 'Довольно длинное описание колонки в БД']
)]

If this is not possible with the IDE, maybe PHP-CS-Fixer has such features... Tell me where to look, maybe I just don't see the necessary options?..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question