Skip to content

Commit

Permalink
fix(github): php-cs-fixer stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bogdanov committed Jan 13, 2022
1 parent 53d4c08 commit f48ddf0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
test.php
/vendor
/phpunit.xml
/.phpunit.result.cache
/.php_cs.cache
/.php-cs-fixer.cache
16 changes: 16 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

$finder = PhpCsFixer\Finder::create()
->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);

0 comments on commit f48ddf0

Please sign in to comment.