Подчищен composer.json
* обновлены версии основных зависимостей * удалён myclabs/php-enum * добавлен psalm с конфигом * добавлен phpcs с конфигом * добавлен php-cs-fixer с конфигом * вероятно, будут ещё настроечные коммиты
This commit is contained in:
25
.php-cs-fixer.php
Normal file
25
.php-cs-fixer.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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,
|
||||
]);
|
||||
Reference in New Issue
Block a user