A few fixes.

- No need for ending PHP tag.
- `$answers[error-codes]` is invalid `$answered['error-codes']`