Created
April 28, 2018 19:07
-
-
Save joaorobertopb/65282dae16947b0e6e6215b11c448bd9 to your computer and use it in GitHub Desktop.
Tutorial PHP CS Fixer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->exclude('somedir') | |
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php') | |
->in(__DIR__); | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR2' => true, | |
'strict_param' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
]) | |
->setFinder($finder); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment