CRITICAL
Rule Definition
For maintainability reasons, empty statements should be avoided. Empty statements make the source code harder to read and to maintain.
Remediation
Modify the source code to reduce the number of artifacts containing empty statements.
Violation Code Sample
stmt {
// comment
}
stmt (conditions) {
// comment
}
Reference
Code Sniffer - http://pear.php.net/package/PHP_CodeSniffer/docs/1.5.2/PHP_CodeSniffer/Squiz_Sniffs_CodeAnalysis_EmptyStatementSniff.html
Related Technologies
Technical Criterion
Complexity - Empty Code
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.