1

I have such code (for example)

<?php

while ( false )
    for ( $i = 1; $i < 10; $i++ )
    {
        $k = 1;
        $i = 1;
    }
$t = 3;
$s = 5;

And check it by PHP CodeSniffer

It produces errors:

4 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4

8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4

Error

Sounds like a bug in Generic.WhiteSpace.ScopeIndent

Сorrect processing should not give an error to this code

0 Answers0