diff --git a/.travis.yml b/.travis.yml index 273903d..1d5f7f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: php php: - - 7.0 - 7.1 - 7.2 @@ -18,12 +17,8 @@ before_script: - composer update --no-interaction --prefer-dist script: - - composer lint - - composer phpunit-coverage + - composer test after_script: - - | - if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar code-coverage:upload --format=php-clover coverage.clover - fi + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover coverage.clover diff --git a/README.md b/README.md index 9d0c15c..78e8cc2 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Laravel package for trader extension interface. Make sure all dependencies have been installed before moving on: -* [PHP](http://php.net/manual/en/install.php) >= 7.0 +* [PHP](http://php.net/manual/en/install.php) >= 7.1.0 * [Trader](http://php.net/manual/en/trader.installation.php) * [Composer](https://getcomposer.org/download/) @@ -22,7 +22,7 @@ Make sure all dependencies have been installed before moving on: Pull the package via Composer: ``` bash -$ composer require nasyrov/laravel-trader +$ composer require laratrade/trader ``` ## Usage @@ -32,7 +32,7 @@ Via dependency injection ``` php =7.0", + "php": ">=7.1.0", "ext-trader": "*", "illuminate/support": "5.5.*|5.6.*" }, @@ -31,12 +32,12 @@ "src/helpers.php" ], "psr-4": { - "Nasyrov\\Laravel\\Trader\\": "src" + "Laratrade\\Trader\\": "src" } }, "autoload-dev": { "psr-4": { - "Nasyrov\\Laravel\\Trader\\Tests\\": "tests" + "Laratrade\\Trader\\Tests\\": "tests" } }, "scripts": { @@ -44,16 +45,16 @@ "phpunit": "phpunit", "phpunit-integration": "phpunit --testsuite Integration", "phpunit-unit": "phpunit --testsuite Unit", - "phpunit-coverage": "phpunit --coverage-clover=coverage.clover", + "phpunit-coverage": "phpunit --testdox --coverage-clover=coverage.clover", "test": [ "@lint", - "@phpunit" + "@phpunit-coverage" ] }, "extra": { "laravel": { "providers": [ - "Nasyrov\\Laravel\\Trader\\TraderServiceProvider" + "Laratrade\\Trader\\TraderServiceProvider" ] } }, diff --git a/src/Contracts/Trader.php b/src/Contracts/Trader.php index b0d4758..76308bf 100644 --- a/src/Contracts/Trader.php +++ b/src/Contracts/Trader.php @@ -1,10 +1,10 @@