Fix php snippets