Pattern: Empty statement
Issue: -
This rule implements the common algorithm for empty statement body detection. A body is considered as empty if it is completely empty or it only contains whitespace characters and/or comments.
Example of incorrect code:
if ($test) {
// do nothing
}
Example of correct code:
if ($test) {
$var = 1;
}