diff --git a/.editorconfig b/.editorconfig index cd8eb86..a7c44dd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,3 @@ -; This file is for unifying the coding style for different editors and IDEs. -; More information at http://editorconfig.org - root = true [*] @@ -13,3 +10,6 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 diff --git a/.gitattributes b/.gitattributes index bb6265e..886475c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,10 +2,13 @@ # https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html # Ignore all test and documentation with "export-ignore". +/.github export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/.travis.yml export-ignore /phpunit.xml.dist export-ignore -/.scrutinizer.yml export-ignore /tests export-ignore /.editorconfig export-ignore +/.php_cs.dist export-ignore +/psalm.xml export-ignore +/psalm.xml.dist export-ignore +/testbench.yaml export-ignore diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 636ef53..fe5143b 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,2 @@ +github: spatie custom: https://spatie.be/open-source/support-us diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..ca91343 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,3 @@ +# Security Policy + +If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker. diff --git a/.php_cs.dist b/.php_cs.dist index 1c4e7d5..c7d380c 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -29,9 +29,15 @@ return PhpCsFixer\Config::create() ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_var_without_name' => true, + 'class_attributes_separation' => [ + 'elements' => [ + 'method', + ], + ], 'method_argument_space' => [ 'on_multiline' => 'ensure_fully_multiline', 'keep_multiple_spaces_after_comma' => true, - ] + ], + 'single_trait_insert_per_statement' => true, ]) ->setFinder($finder); diff --git a/README.md b/README.md index 0b405fe..20e0b16 100644 --- a/README.md +++ b/README.md @@ -181,23 +181,23 @@ There are several events fired which can be used to perform some logic of your o - `Spatie\DbSnapshots\Events\DeletingSnapshot`: will be fired before a snapshot is deleted - `Spatie\DbSnapshots\Events\DeletedSnapshot`: will be fired after a snapshot has been deleted -## Changelog - -Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. - ## Testing -``` bash +```bash composer test ``` +## Changelog + +Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. + ## Contributing -Please see [CONTRIBUTING](CONTRIBUTING.md) for details. +Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details. -## Security +## Security Vulnerabilities -If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker. +Please review [our security policy](../../security/policy) on how to report security vulnerabilities. ## Credits diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7a65b9f..3bbe22a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,22 +1,39 @@ - + - + tests - - - src/ - - + + + ./src + + + + + + + + + +