20 lines
532 B
PHP
20 lines
532 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__ . '/src')
|
|
->in(__DIR__ . '/modules')
|
|
->in(__DIR__ . '/tests')
|
|
->in(__DIR__ . '/config');
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
return $config->setRules([
|
|
'@PSR12' => true,
|
|
'strict_param' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'no_unused_imports' => true,
|
|
'ordered_imports' => ['sort_algorithm' => 'alpha'],
|
|
'single_quote' => true,
|
|
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
|
|
])
|
|
->setFinder($finder);
|