20 lines
541 B
PHP
20 lines
541 B
PHP
<?php
|
|
|
|
$finder = Symfony\Component\Finder\Finder::create()
|
|
->notPath('vendor')
|
|
->notPath('bootstrap')
|
|
->notPath('storage')
|
|
->in(__DIR__)
|
|
->name('*.php')
|
|
->notName('*.blade.php');
|
|
|
|
return (new PhpCsFixer\Config)
|
|
->setRules([
|
|
'@PSR2' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'ordered_imports' => ['sort_algorithm' => 'length'],
|
|
'no_unused_imports' => true,
|
|
])
|
|
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
|
|
->setFinder($finder);
|