diff --git a/.gitignore b/.gitignore index b6fc3f8..6853e84 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,12 @@ vendor/ composer.lock +# Composer binaries +bin/phpunit +bin/phpstan +bin/phpstan.phar +bin/php-cs-fixer + # Tests tests/cov/ @@ -11,5 +17,8 @@ bin # Vim .*.swp +# IDEs +/.idea + # development stuff .php_cs.cache diff --git a/.travis.yml b/.travis.yml index 9b24bbe..f3a062a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ matrix: fast_finish: true install: - - if [ $RUN_PHPSTAN == "TRUE" ]; then wget https://github.com/phpstan/phpstan/releases/download/0.10.3/phpstan.phar; fi + - if [ $RUN_PHPSTAN == "TRUE" ]; then composer require --dev phpstan/phpstan:^0.12; fi before_script: - rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini @@ -27,7 +27,7 @@ before_script: script: - if [ $RUN_PHPSTAN == "FALSE" ]; then ./bin/phpunit --configuration tests/phpunit.xml.dist --coverage-clover=coverage.xml; fi - - if [ $RUN_PHPSTAN == "TRUE" ]; then php phpstan.phar analyse -c phpstan.neon lib; fi + - if [ $RUN_PHPSTAN == "TRUE" ]; then php ./bin/phpstan analyse -c phpstan.neon lib; fi after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/lib/functions.php b/lib/functions.php index 161e684..af74948 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -185,7 +185,7 @@ function normalize(string $uri): string * * @param string $uri * - * @return array + * @return array * * @throws InvalidUriException */ @@ -225,7 +225,7 @@ function ($matches) { * This function takes the components returned from PHP's parse_url, and uses * it to generate a new uri. * - * @param array $parts + * @param array $parts * * @return string */ @@ -283,7 +283,7 @@ function build(array $parts): string * * @param string $path * - * @return array + * @return array */ function split(string $path): array { @@ -307,7 +307,7 @@ function split(string $path): array * * @param string $uri * - * @return array + * @return array * * @throws InvalidUriException */