Useless whitespaces removed
Fixed bug with referencing $this in wrong context

Changing the var to public is probably not the cleanest way
of fixing the issue though.