language: php
php:
  - "5.5"
  - "5.6"
  - "7.0"
  - "hhvm"

install:
  - composer install
  - composer dumpautoload

before_script:
  - curl http://cs.sensiolabs.org/get/php-cs-fixer.phar -o php-cs-fixer.phar

script:
  - output=$(php -n php-cs-fixer.phar fix -v --dry-run --level=psr2 src); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi;

language: php
php:
  - "5.6"
  - "7.0"

install:
  - composer install
  - composer dumpautoload

before_script:
  - curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v1.12.4/php-cs-fixer.phar -o php-cs-fixer

script:
  - output=$(php -n php-cs-fixer fix -v --dry-run --level=psr2 src); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi;

Test only on php5.6+ (as per Laravel 5.3 requirements).
Test only on php5.6+ (as per Laravel 5.3 requirements).
