Skip to content

Instantly share code, notes, and snippets.

@jtojnar
Last active June 30, 2022 19:58
Show Gist options
  • 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