make jackalope psr1 and psr2 compatible

not as much work as it looks, thanks to the php-cs fixer by fabpot.