From f48ddf01fd1b4fd014bf7c5162dcdad5200e3ee6 Mon Sep 17 00:00:00 2001 From: Alexander Bogdanov Date: Thu, 13 Jan 2022 18:30:47 +0300 Subject: [PATCH] fix(github): php-cs-fixer stuff --- .gitignore | 3 +++ .php-cs-fixer.dist.php | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .php-cs-fixer.dist.php diff --git a/.gitignore b/.gitignore index 2b60f0d..810411b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ test.php /vendor /phpunit.xml +/.phpunit.result.cache +/.php_cs.cache +/.php-cs-fixer.cache diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..33a7c3d --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,16 @@ +exclude(array('.git', 'vendor')) + ->in(__DIR__) +; + +$config = new PhpCsFixer\Config(); +$config->setRules([ + '@PSR12' => true, + //'strict_param' => true, + 'array_syntax' => ['syntax' => 'short'], + ]) + ->setFinder($finder) +; +return $config->setUsingCache(false);