Fixes phpDoc and function visibility