MDL-32329 fixed missing phpdoc and improved coding style