mirror of
https://github.com/anonaddy/anonaddy
synced 2026-04-25 17:15:29 +02:00
22 lines
521 B
PHP
22 lines
521 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);
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
|
|
return $config->setRules([
|
|
'@PSR12' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'ordered_imports' => ['sort_algorithm' => 'alpha'],
|
|
'no_unused_imports' => true,
|
|
])
|
|
->setFinder($finder);
|