Revert "Update MessageGenerator.php"

This reverts commit 4c2c6edf4e1c13398a36f8bbad1ece806c9b0d43.