language: php

sudo: false

php:
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - hhvm

before_script:
  - composer self-update
  - composer install

script:
  - ./vendor/bin/phpunit
  - [[ if "$TRAVIS_PHP_VERSION" = '7.1' ]]; then /vendor/bin/psalm; fi
  - ./vendor/bin/phpcs

after_script:
  - sh .travis.coverage.sh

matrix:
  allow_failures:
    - php: hhvm
    - php: 7.2

language: php

sudo: false

php:
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2
  - hhvm

before_script:
  - composer self-update
  - composer install

script:
  - ./vendor/bin/phpunit
  - if [[ "$TRAVIS_PHP_VERSION" = '7.1' ]]; then ./vendor/bin/psalm; fi
  - ./vendor/bin/phpcs

after_script:
  - sh .travis.coverage.sh

matrix:
  allow_failures:
    - php: hhvm
    - php: 7.2

Fix error on the `if` syntax
Fix error on the `if` syntax
