Сообщите phpcs использовать другой отступ внутри управляющих структур.Php

Кемеровские программисты php общаются здесь
Гость
Сообщите phpcs использовать другой отступ внутри управляющих структур.

Сообщение Гость »


Вывод php говорит мне поставить 8 пробелов внутри if

Код: Выделить всё

class bla
{
private function wop()
{
if (true) {
$something = 'yes'; // 6 spaces indent is what I want!
}
}
}
indented at least once; expected at least 8 spaces, but found 6
(PSR12.ControlStructures.ControlStructureSpacing.LineIndent) Each line in a
multi-line control structure must be

How do I tell phpcs that I prefer 6 spaces?


Источник: https://stackoverflow.com/questions/781 ... structures

Вернуться в «Php»