Fixed duplicate function parameters

The $context parameter appears twice (and is used only once). PHP7 doesn't allow that anymore, but in any case, this looks like a bug to me.