Small updates to php snippets.
Adding $this-> and return php snippets.