Various phpdoc and CS fixes.