atol-online/.php-cs-fixer.php

26 lines
629 B
PHP
Raw Permalink Normal View History

<?php
/*
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
*
* This code is licensed under MIT.
* Этот код распространяется по лицензии MIT.
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
*/
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('docs')
->notPath('test.php');
return (new PhpCsFixer\Config())
->setFinder($finder)
->setIndent(' ')
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'group_to_single_imports' => false,
]);