Подчищен composer.json

* обновлены версии основных зависимостей
* удалён myclabs/php-enum
* добавлен psalm с конфигом
* добавлен phpcs с конфигом
* добавлен php-cs-fixer с конфигом
* вероятно, будут ещё настроечные коммиты
This commit is contained in:
2022-12-15 00:24:03 +08:00
parent 4157ab68f5
commit 95e3a9cac5
5 changed files with 2971 additions and 127 deletions

25
.php-cs-fixer.php Normal file
View 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,
]);