D
D
Dubrovin2018-08-28 20:14:44
phpstorm
Dubrovin, 2018-08-28 20:14:44

How to fix MultipleStatementAlignment in PHP CodeSniffer?

Hello, PHPStorm aligns code like this:

$inline_css = '';
$inline_css .= $min_height_css;

But PHPCS swears by the Generic.Formatting.MultipleStatementAlignment warning and expects alignment like this (an extra space before the assignment character):
$inline_css  = '';
$inline_css .= $min_height_css;

How can I either fix the inspector in PHPCS or fix the alignment algorithm in PHPStorm?

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