Fix checkstyle and phpdoc