Description |
Category: Bug |
When a function sometimes returns a value and sometimes doesn't return a value
(i.e., uses an empty return; statement), it may imply that the function
may not behave properly in certain circumstances. Alternatively, it may mean
that the return value(s) is/are redundant.
Example
if ($a) {
return 1;
} else {
return;
}