Avoid infinity loop & division by zero

This is of course to handle bad input parameters for `isInIncrementsOfRanges`.

This fix #64

I've also run `php-cs-fixer` to cleanup few things. If you're not ok with that, I can revert change related to it.