Be sure to run these through PHP CodeSniffer using the Joomla rules, which can be found here - https://github.com/joomla/coding-standards