Update docs to use return $this

As per #3787 this updates the Query and Email docs to use `@return $this` instead of a class reference.