Last active
August 10, 2019 11:57
-
-
Save ykocaman/0972fd1228565533e08e8385db48bbb7 to your computer and use it in GitHub Desktop.
This file contains 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 | |
// Symfony 2.8 | |
require __DIR__.'/vendor/autoload.php'; | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
use PhpCsFixer\Fixer\Import\OrderedImportsFixer; | |
return \PhpCsFixer\Config::create() | |
->setFinder(\PhpCsFixer\Finder::create()->in(__DIR__.'/src')) | |
->setUsingCache(false) | |
->setRiskyAllowed(true) | |
->setRules([ | |
'psr0' => true, | |
'psr4' => true, | |
'ordered_imports' => ['sortAlgorithm' => OrderedImportsFixer::SORT_LENGTH], | |
'binary_operator_spaces' => ['align_equals' => true, 'align_double_arrow' => true], | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.php_cs for Symfony 4