Refactor php docblocks