mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-10-11 09:31:56 +00:00
Подчищен composer.json
* обновлены версии основных зависимостей * удалён myclabs/php-enum * добавлен psalm с конфигом * добавлен phpcs с конфигом * добавлен php-cs-fixer с конфигом * вероятно, будут ещё настроечные коммиты
This commit is contained in:
parent
4157ab68f5
commit
95e3a9cac5
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,
|
||||
]);
|
@ -5,22 +5,18 @@
|
||||
"type": "library",
|
||||
"keywords": [
|
||||
"api",
|
||||
"e-commerce",
|
||||
"54-fz",
|
||||
"54-фз",
|
||||
"kkt",
|
||||
"ккт",
|
||||
"cash",
|
||||
"cash register",
|
||||
"payment",
|
||||
"payment system",
|
||||
"чек",
|
||||
"atol",
|
||||
"атол",
|
||||
"payment",
|
||||
"e-commerce",
|
||||
"atol online",
|
||||
"атол онлайн",
|
||||
"fiscalization",
|
||||
"atol-online",
|
||||
"атол-онлайн",
|
||||
"фискализация",
|
||||
"чек"
|
||||
"fiscalization",
|
||||
"payment system"
|
||||
],
|
||||
"homepage": "https://github.com/anthonyaxenov/atol-online",
|
||||
"readme": "https://github.com/anthonyaxenov/atol-online/blob/master/README.md",
|
||||
@ -39,28 +35,31 @@
|
||||
"docs": "https://github.com/anthonyaxenov/atol-online/blob/master/docs/readme.md"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"type": "Patreon",
|
||||
"url": "https://www.patreon.com/anthonyaxenov"
|
||||
},
|
||||
{
|
||||
"type": "Yoomoney",
|
||||
"url": "https://yoomoney.ru/to/41001685237530"
|
||||
},
|
||||
{
|
||||
"type": "Buy Me a Coffee",
|
||||
"url": "https://www.buymeacoffee.com/axenov"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=8.1",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"guzzlehttp/guzzle": "^7.4",
|
||||
"guzzlehttp/guzzle": "^7.5",
|
||||
"psr/log": "^3",
|
||||
"ramsey/uuid": "^4.2",
|
||||
"myclabs/php-enum": "^1.8",
|
||||
"illuminate/collections": "^8.70",
|
||||
"ramsey/uuid": "^4.6",
|
||||
"illuminate/collections": "^v9.43",
|
||||
"jetbrains/phpstorm-attributes": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
"friendsofphp/php-cs-fixer": "^3.13",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"psalm/plugin-phpunit": "^0.18",
|
||||
"squizlabs/php_codesniffer": "^3.7",
|
||||
"vimeo/psalm": "^4.30"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@ -73,6 +72,8 @@
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"phpcs": "vendor/bin/phpcs",
|
||||
"psalm": "vendor/bin/psalm",
|
||||
"test": "vendor/bin/phpunit --colors=always",
|
||||
"coverage": "php -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html .coverage"
|
||||
},
|
||||
|
2944
composer.lock
generated
2944
composer.lock
generated
File diff suppressed because it is too large
Load Diff
26
phpcs.xml
Normal file
26
phpcs.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
~ Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
|
||||
~
|
||||
~ This code is licensed under MIT.
|
||||
~ Этот код распространяется по лицензии MIT.
|
||||
~ https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
|
||||
-->
|
||||
|
||||
<ruleset name="atol-online standards">
|
||||
<description>atol-online coding standards</description>
|
||||
|
||||
<file>src</file>
|
||||
<file>tests</file>
|
||||
|
||||
<exclude-pattern>*/docs/*</exclude-pattern>
|
||||
<exclude-pattern>*/vendor/*</exclude-pattern>
|
||||
|
||||
<arg name="extensions" value="php"/>
|
||||
<arg name="colors"/>
|
||||
<arg value="p"/>
|
||||
|
||||
<rule ref="PSR12">
|
||||
<exclude name="PSR12.Files.FileHeader.SpacingInsideBlock"/>
|
||||
</rule>
|
||||
</ruleset>
|
62
psalm.xml
Normal file
62
psalm.xml
Normal file
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
~ Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
|
||||
~
|
||||
~ This code is licensed under MIT.
|
||||
~ Этот код распространяется по лицензии MIT.
|
||||
~ https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
|
||||
-->
|
||||
|
||||
<psalm
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
|
||||
errorLevel="7"
|
||||
addParamDefaultToDocblockType="true"
|
||||
allowStringToStandInForClass="true"
|
||||
disableSuppressAll="true"
|
||||
ensureArrayIntOffsetsExist="true"
|
||||
ensureArrayStringOffsetsExist="true"
|
||||
findUnusedCode="true"
|
||||
findUnusedPsalmSuppress="true"
|
||||
findUnusedVariablesAndParams="true"
|
||||
runTaintAnalysis="true"
|
||||
sealAllMethods="true"
|
||||
sealAllProperties="true"
|
||||
strictBinaryOperands="true"
|
||||
>
|
||||
<!-- Default values:
|
||||
allowNamedArgumentCalls="true"
|
||||
checkForThrowsDocblock="false"
|
||||
checkForThrowsInGlobalScope="false"
|
||||
hideExternalErrors="false"
|
||||
hoistConstants="false"
|
||||
ignoreInternalFunctionFalseReturn="true"
|
||||
ignoreInternalFunctionNullReturn="true"
|
||||
inferPropertyTypesFromConstructor="true"
|
||||
memoizeMethodCallResults="false"
|
||||
rememberPropertyAssignmentsAfterCall="true"
|
||||
reportInfo="true"
|
||||
reportMixedIssues="true" - when errorLevel>=3
|
||||
resolveFromConfigFile="true"
|
||||
skipChecksOnUnresolvableIncludes="false"
|
||||
throwExceptionOnError="false"
|
||||
useDocblockPropertyTypes="false"
|
||||
useDocblockTypes="true"
|
||||
usePhpDocMethodsWithoutMagicCall="false"
|
||||
usePhpDocPropertiesWithoutMagicCall="false"
|
||||
-->
|
||||
|
||||
<projectFiles>
|
||||
<directory name="src"/>
|
||||
<directory name="tests"/>
|
||||
<ignoreFiles>
|
||||
<directory name="vendor"/>
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
|
||||
<plugins>
|
||||
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
|
||||
</plugins>
|
||||
</psalm>
|
Loading…
Reference in New Issue
Block a user