From 51642b57c7c42f175a8eae20f283a0514471d008 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Mon, 17 Jan 2022 10:58:46 +0100 Subject: [PATCH] add CS-Fixer configuration --- .gitattributes | 4 ++++ .php-cs-fixer.php | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .gitattributes create mode 100644 .php-cs-fixer.php diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1646bad --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto + +/.gitattributes export-ignore +/.php-cs-fixer.php export-ignore diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php new file mode 100644 index 0000000..f0512a0 --- /dev/null +++ b/.php-cs-fixer.php @@ -0,0 +1,13 @@ +in(__DIR__) +; + +$config = new PhpCsFixer\Config(); +return $config->setRules([ + '@PHP73Migration' => true, + '@PSR12' => true + ]) + ->setFinder($finder) +; \ No newline at end of file