fix fatal error when filter contains closure
missing get_class() in previous commit
conform to coding standards
Merge pull request #48 from nykopol/master

Fatal error when filter contains closure