Skip to content

Instantly share code, notes, and snippets.

@jtojnar
Last active June 30, 2022 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtojnar/ad5714cc0e2ac5375c77961e241cc2b2 to your computer and use it in GitHub Desktop.
Save jtojnar/ad5714cc0e2ac5375c77961e241cc2b2 to your computer and use it in GitHub Desktop.
basic php-cs-fixer config
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('squizlabsD')
->in(__DIR__);
$rules = [
'@PSR2' => true,
// buggy, duplicates existing comment sometimes
'no_break_comment' => false,
// 'array_syntax' => true,
];
$config = new PhpCsFixer\Config();
return $config
->setRules($rules)
->setFinder($finder);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment