Tag: Coding Standard
Coding standards are a set of guidelines and best practices that developers follow to ensure consistency, readability, and maintainability in their code.
-
How to ignore PHP_CodeSniffer warning: Line exceeds 120 characters
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:…