22 lines
436 B
PHP
22 lines
436 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
use PhpCsFixer\Config;
|
||
|
|
use PhpCsFixer\Finder;
|
||
|
|
|
||
|
|
$finder = Finder::create()
|
||
|
|
->in(__DIR__ . '/src')
|
||
|
|
->name('*.php')
|
||
|
|
->exclude('vendor');
|
||
|
|
|
||
|
|
return (new Config())
|
||
|
|
->setRules([
|
||
|
|
'@PSR12' => true,
|
||
|
|
'declare_strict_types' => true,
|
||
|
|
'array_syntax' => ['syntax' => 'short'],
|
||
|
|
'strict_comparison' => true,
|
||
|
|
'strict_param' => true,
|
||
|
|
])
|
||
|
|
->setFinder($finder);
|