add CS-Fixer configuration

This commit is contained in:
Daniel Seifert 2022-01-17 10:58:46 +01:00
parent d0464d4a20
commit 51642b57c7
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
2 changed files with 17 additions and 0 deletions

4
.gitattributes vendored Normal file
View File

@ -0,0 +1,4 @@
* text=auto
/.gitattributes export-ignore
/.php-cs-fixer.php export-ignore

13
.php-cs-fixer.php Normal file
View File

@ -0,0 +1,13 @@
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PHP73Migration' => true,
'@PSR12' => true
])
->setFinder($finder)
;