squizlabs / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
10.67k stars 1.48k forks source link

How do I correct phpcs errors #3635

Closed AIdooRobert closed 1 year ago

AIdooRobert commented 2 years ago

Line indented incorrectly; expected at least 24 spaces, found 20 (PEAR.WhiteSpace.ScopeIndent.Incorrect)phpcs

gsherwood commented 2 years ago

The sniff wants whatever line the error is on to be indented 24 spaces. It's only indented 20 spaces, so it wants you to add 4 more spaces.