Demo blog, User model enhancements:

1. Added EOL at the end of file.
2. Added @throws tag to the User::generateSalt() method.
3. Removed invalid and unnecessary Yii::t() translation call.
4. Fixes #2375. `str_pad` replaced with `sprintf`.