added a missing class var to get rid of a PHP warning

also fixed a code sniffer warning

discovered while working on https://github.com/GigaOM/legacy-pro/issues/4087