[phpdoc] Update PhpDoc

Update PhpDoc and refactor some code (no code changes).
I don't want such coding standard. It makes it a pain to add new options. Please revert it otherwise this won't be merged