Add newline character at the end of the file
Remove the $cause parameter as it is not used
Coding style fix