diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9459539 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: php +php: + - "7.1" + - "7.0" + - "5.6" +before_script: + - composer self-update + - composer install --prefer-source + +script: + - ./vendor/bin/phpcs --standard=PSR2 src \ No newline at end of file diff --git a/README.md b/README.md index b5f0fdc..a51e532 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ auth()->user()->notifications() `composer require if4lcon/laravel-clear-orders-by` -Then add this line `Bader\ClearOrdersBy\clearOrdersByServiceProvider::class` to service providers in `config/app.php`. +Then add this line `Bader\ClearOrdersBy\ClearOrdersByServiceProvider::class` to service providers in `config/app.php`. ## License diff --git a/composer.json b/composer.json index b57ef71..2d345cd 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,9 @@ "illuminate/database": "5.*", "illuminate/support": "5.*" }, + "require-dev": { + "squizlabs/php_codesniffer": "^3.5" + }, "autoload": { "psr-4": { "Bader\\ClearOrdersBy\\": "src/" @@ -21,7 +24,7 @@ "extra": { "laravel": { "providers": [ - "Bader\\ClearOrdersBy\\clearOrdersByServiceProvider" + "Bader\\ClearOrdersBy\\ClearOrdersByServiceProvider" ] } } diff --git a/src/clearOrdersByServiceProvider.php b/src/ClearOrdersByServiceProvider.php similarity index 86% rename from src/clearOrdersByServiceProvider.php rename to src/ClearOrdersByServiceProvider.php index f0ab9ab..8b10643 100644 --- a/src/clearOrdersByServiceProvider.php +++ b/src/ClearOrdersByServiceProvider.php @@ -5,7 +5,7 @@ use Illuminate\Database\Query\Builder; use Illuminate\Support\ServiceProvider; -class clearOrdersByServiceProvider extends ServiceProvider +class ClearOrdersByServiceProvider extends ServiceProvider { /**