Tag: CodeSniffer

CodeSniffer is a tool used for detecting coding standard violations in PHP files by analyzing their code against a predefined set of coding rules. It helps ensure consistent code style and readability across projects by automatically identifying and highlighting deviations from the specified coding standards.

  • How to ignore PHP_CodeSniffer warning: Line exceeds 120 characters

    How to ignore PHP_CodeSniffer warning: Line exceeds 120 characters

    Written by

    in

    PHP_CodeSniffer is a set of PHP scripts to detect violations of a defined coding standard, and to automatically correct such coding standard violations. When using CodeSniffer to check your code, a lot of warnings might appear for such violations. Accodring to PSR-2 coding style guide, a warning is raised when the lines are too long:…

    Read more