<?php
$finder = \PhpCsFixer\Finder::create()
    ->in(__DIR__)
    ->exclude('data')
    ->exclude('docker')
    ->exclude('frontend')
    ->notPath('common/emails/views')
    ->notPath('common/mail/layouts')
    ->notPath('/.*\/runtime/')
    ->notPath('autocompletion.php')
    ->notPath('/.*\/tests\/_output/')
    ->notPath('/.*\/tests\/_support\/_generated/')
    ->name('yii');

return \Ely\CS\Config::create([
    'self_accessor' => false,
])->setFinder($finder);