A......... [ZBX-7766] minor code refactoring and PHP doc update