Refactor PHPDoc