diff --git a/.gitignore b/.gitignore index 3febf4b..0d1a9f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /vendor composer.lock phpunit.xml +.php_cs.cache diff --git a/.php_cs b/.php_cs new file mode 100644 index 0000000..bd1a168 --- /dev/null +++ b/.php_cs @@ -0,0 +1,21 @@ +notPath('vendor') + ->in(__DIR__) + ->name('*.php') + ->notName('*.blade.php') + ->ignoreDotFiles(true) + ->ignoreVCS(true); + +return PhpCsFixer\Config::create() + ->setRules([ + '@PSR2' => true, + 'array_syntax' => ['syntax' => 'short'], + 'blank_line_after_namespace' => true, + 'blank_line_after_opening_tag' => true, + 'ordered_imports' => ['sortAlgorithm' => 'alpha'], + 'no_unused_imports' => true, + 'not_operator_with_successor_space' => true, + ]) + ->setFinder($finder); diff --git a/.phpunit.result.cache b/.phpunit.result.cache new file mode 100644 index 0000000..e98b45b --- /dev/null +++ b/.phpunit.result.cache @@ -0,0 +1 @@ +C:37:"PHPUnit\Runner\DefaultTestResultCache":44:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:0:{}}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index ded9e74..e6056c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ language: php php: - - 7.1 - 7.2 - 7.3 + - 7.4 env: matrix: diff --git a/composer.json b/composer.json index 2a86b84..2421ef8 100644 --- a/composer.json +++ b/composer.json @@ -11,13 +11,13 @@ } ], "require": { - "php": "^7.1", - "illuminate/database": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0", - "illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0" + "php": "^7.2.5", + "illuminate/database": "^6.0|^7.0", + "illuminate/support": "^6.0|^7.0" }, "require-dev": { - "phpunit/phpunit": "^7.0|^8.0", - "orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0|~3.8.0|^4.0" + "phpunit/phpunit": "^7.0|^8.0|^9.0", + "orchestra/testbench": "^4.0|^5.0" }, "autoload": { "psr-4": {