add CS-Fixer configuration

Cette révision appartient à :
Daniel Seifert 2022-01-17 10:58:46 +01:00
Parent d0464d4a20
révision 51642b57c7
Signé par: DanielS
ID de la clé GPG: 8A7C4C6ED1915C6F
2 fichiers modifiés avec 17 ajouts et 0 suppressions

4
.gitattributes externe Fichier normal
Voir le fichier

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

13
.php-cs-fixer.php Fichier normal
Voir le fichier

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