Search code examples
phpcoding-style

PHP codesniffer - how to teach it to ignore white space?


I am using PHP CodeSniffer to check if my code complies to Zend standards. 80 chars per line is one of them. But I prefer to indent line with white spaces and sniffer treat short lines with line indentations as long lines.

Is there a way to teach it to ignore whitespace identations? Or it makes sense and the farther my line is indented, the shorter it should be?


Solution

  • Actually this makes perfect sense to keep a line to 80 characters, no matter how many indentations you have.