Issue #2315159 by dooug: Updated publishing to GitHub Gist to v3 API
Fixing PHP notices and warnings.