fix PSR-0 violation
Merge pull request #818 from craigh/hookfix

fix PSR-0 violation