You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
603 B
23 lines
603 B
<?php |
|
|
|
if (!file_exists(__DIR__.'/src')) { |
|
exit(0); |
|
} |
|
|
|
return PhpCsFixer\Config::create() |
|
->setRules( |
|
[ |
|
'@PSR2' => true, |
|
'@Symfony' => true, |
|
'array_syntax' => ['syntax' => 'short'], |
|
'binary_operator_spaces' => ['default' => 'align'], |
|
'protected_to_private' => false, |
|
] |
|
) |
|
->setUsingCache(false) |
|
->setRiskyAllowed(true) |
|
->setFinder( |
|
PhpCsFixer\Finder::create() |
|
->in(__DIR__.'/src') |
|
->append([__FILE__, __DIR__.'/samples']) |
|
);
|
|
|