Remove logging

- Fixed a few phpcs issues
- Removed logging when debug is set