php - PhpStorm PSR-12 Code style adds extra 21 spaces to array
Get the solution ↓↓↓After selecting PSR12 code style in PhpStorm I get extra 21 spaces in array column:
$columns->addHeaders([
'Number',
'Number in words',
'Number in words length'
]);
Instead of:
$columns->addHeaders([
'Number',
'Number in words',
'Number in words length'
]);
Is there any way to configure PhpStorm to auto-format code like in second example, but leaving all other PSR-12 configs?
P.S. I understand, that using PSR-12 I should start array in next line (example below), but sometimes I still need to use first method of formatting:
$columns->addHeaders(
[
'Number',
'Number in words',
'Number in words length'
]
);
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: closed without sending a request; it was probably just an unused speculative preconnection
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.