Missing PhpDoc typehints and renamed a variable