20 lines
No EOL
507 B
PHP
20 lines
No EOL
507 B
PHP
<?php
|
|
|
|
$finder = Symfony\Component\Finder\Finder::create()
|
|
->notPath('vendor')
|
|
->notPath('bootstrap')
|
|
->notPath('storage')
|
|
->in(__DIR__)
|
|
->name('*.php')
|
|
->notName('*.blade.php')
|
|
->ignoreDotFiles(true)
|
|
->ignoreVCS(true);
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'@PSR2' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
|
|
'no_unused_imports' => true,
|
|
])
|
|
->setFinder($finder); |