Merge branch 'dev'
used cast to int instead of ternary operator
fixed documentation type hinting
added check for argument value
Merge branch 'master' of https://github.com/maldoinc/php-pagination into dev
added cast to int of value parameter