Fix phpdoc and function scope

I would remove it entirely