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
Вывод php говорит мне поставить 8 пробелов внутри if [code]class bla { private function wop() { if (true) { $something = 'yes'; // 6 spaces indent is what I want! } } } [/code]
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
Вывод php говорит мне поставить 8 пробелов внутри if
class bla
{
private function wop()
{
if (true) {
$something = 'yes'; // 6 spaces indent is what I want!
}
}
}
с отступом хотя бы один раз; ожидалось не менее 8 пробелов, но обнаружено 6...
I want to be able to write fragments of indented XML with no namespaces, no XML preambles, and \n for line endings, using XmlSerializer for each fragment and using a single XmlWriter instance for all the fragments. How can I do that?...
Когда я ввожу phpcs --version, вместо номера версии я получаю что-то вроде этого:
/Applications/drupal/php/bin/phpcs: line 2: ?php: No such file or directory
/Applications/drupal/php/bin/phpcs: line 3: /Applications: is a directory...
Я использую (среди прочего) следующий фрагмент PHPCS:
Squiz.WhiteSpace.SuperfluousWhitespace.EndLine
Но меня расстраивает то, что пробелы в конце строки внутри докблоков помечаются. Есть ли способ отключить ошибки конкретно для комментариев и/или...