Running php-cs-fixer and fixed a few small bugs
Merge branch 'master' of github.com:JoshuaEstes/php-client

* 'master' of github.com:JoshuaEstes/php-client:
  Validity checks