Created
December 23, 2019 04:50
-
-
Save phcostabh/4f79159b203f5df268fc798a760e4a43 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 | |
namespace PhpCsFixer { | |
$finder = Finder::create() | |
->notPath('bootstrap/cache') | |
->notPath('storage') | |
->notPath('vendor') | |
->in(__DIR__) | |
->name('*.php') | |
->notName('*.blade.php') | |
->ignoreDotFiles(true) | |
->ignoreVCS(true); | |
$fixers = [ | |
'@Symfony' => true, | |
'@Symfony:risky' => true, | |
'@PhpCsFixer' => true, | |
'@PhpCsFixer:risky' => true, | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => ['align_double_arrow' => false], | |
'braces' => true, | |
'indentation_type' => true, | |
'linebreak_after_opening_tag' => true, | |
'method_chaining_indentation' => true, | |
'multiline_whitespace_before_semicolons' => false, | |
'not_operator_with_successor_space' => true, | |
'ordered_imports' => true, | |
'phpdoc_align' => ['align' => 'left'], | |
'phpdoc_order' => true, | |
'phpdoc_to_return_type' => true, | |
]; | |
return Config::create() | |
->setRules($fixers) | |
->setFinder($finder) | |
->setRiskyAllowed(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment