Fix style and phpdoc