Skip to content

Instantly share code, notes, and snippets.

@orrisroot
Last active July 27, 2022 03:30
Show Gist options
  • Save orrisroot/ac2b872336e0218cf14b03d0821422b6 to your computer and use it in GitHub Desktop.
Save orrisroot/ac2b872336e0218cf14b03d0821422b6 to your computer and use it in GitHub Desktop.
default php-cs-fixer configuration for my projects
<?php
declare(strict_types=1);
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
])
->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment