Skip to content

Commit e457a2a

Browse files
author
DKravtsov
committed
Updated documentation, composer dependencies, fixed php-cs-fixer code quality tool.
1 parent 139ae1a commit e457a2a

32 files changed

+1476
-1139
lines changed

composer.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@
8787
"Symplify\\CodingStandard\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/symplify/coding-standard/src",
8888
"Symplify\\EasyCodingStandard\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/src",
8989
"ECSPrefix20210928\\Symplify\\RuleDocGenerator\\": "tools/03_ecs/vendor/symplify/easy-coding-standard/vendor/symplify/rule-doc-generator-contracts/src",
90-
"Rector\\Core\\": "tools/08_rector/vendor/rector/rector/src",
91-
"Rector\\Php74\\": "tools/08_rector/vendor/rector/rector/rules/Php74",
92-
"Rector\\Php80\\": "tools/08_rector/vendor/rector/rector/rules/Php80",
93-
"Rector\\Php81\\": "tools/08_rector/vendor/rector/rector/rules/Php81",
94-
"Rector\\Set\\": "tools/08_rector/vendor/rector/rector/packages/Set"
90+
"Rector\\": "tools/08_rector/vendor/rector/"
9591
}
9692
},
9793
"minimum-stability": "dev",

composer.lock

+478-225
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/images/phpstorm_01.png

5.41 KB
Loading

docs/images/phpstorm_02.png

3.15 KB
Loading

docs/images/phpstorm_03.png

1.33 KB
Loading

docs/images/phpstorm_04.png

3.07 KB
Loading

docs/images/phpstorm_05.png

663 Bytes
Loading

docs/images/phpstorm_06.png

-3.66 KB
Loading

docs/images/phpstorm_07.png

2.16 KB
Loading

docs/images/phpstorm_08.png

2.64 KB
Loading

docs/images/phpstorm_09.png

730 Bytes
Loading

docs/images/phpstorm_10.png

2.68 KB
Loading

docs/images/phpstorm_11.png

-126 KB
Binary file not shown.

docs/images/phpstorm_11_1.png

69.6 KB
Loading

docs/images/phpstorm_11_2.png

71.6 KB
Loading

docs/images/phpstorm_11_3.png

111 KB
Loading

docs/images/xdebug_01.png

10 KB
Loading

docs/phpstorm.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ In order to use Xdebug as debugging tool please follow [Using Xdebug](xdebug.md)
5555
![Path mappings](images/phpstorm_09.png)
5656
![Path mappings](images/phpstorm_10.png)
5757

58-
* Go to `Settings -> Editor -> Inspections` and import profile `Systemsdk` (Inspections.xml) from [docs/phpstorm](phpstorm) and make sure that you have proper path to `phpmd_ruleset.xml`:
58+
* Set other configurations for code quality tools and make sure that you have proper path for the MessDetector ruleset `phpmd_ruleset.xml`:
5959

60-
![Path mappings](images/phpstorm_11.png)
60+
![Path mappings](images/phpstorm_11_1.png)
61+
![Path mappings](images/phpstorm_11_2.png)
62+
63+
* Go to `Settings -> Editor -> Inspections` and import profile `Systemsdk` (Inspections.xml) from [docs/phpstorm](phpstorm):
64+
65+
![Path mappings](images/phpstorm_11_3.png)
6166

6267
* Go to `Settings -> Tools -> External tools` and create ecs tool:
6368

docs/phpstorm/Inspections.xml

+2-9
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
<option name="CODING_STANDARD" value="PSR12" />
110110
<option name="CUSTOM_RULESET_PATH" value=".php-cs-fixer.dist.php" />
111111
<option name="SHOW_SNIFF_NAMES" value="true" />
112-
<option name="EXTENSIONS" value="php,js,css,inc" />
113112
</inspection_tool>
114113
<inspection_tool class="PhpDivisionByZeroInspection" enabled="true" level="WARNING" enabled_by_default="true" />
115114
<inspection_tool class="PhpDocMissingReturnTagInspection" enabled="true" level="WARNING" enabled_by_default="true">
@@ -118,18 +117,12 @@
118117
<inspection_tool class="PhpDocMissingThrowsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
119118
<option name="SKIP_ON_EMPTY_PHPDOC" value="false" />
120119
</inspection_tool>
121-
<inspection_tool class="PhpDocSignatureInspection" enabled="true" level="WARNING" enabled_by_default="true">
122-
<option name="ALLOW_MISSING_PARAMETERS" value="true" />
123-
</inspection_tool>
120+
<inspection_tool class="PhpDocSignatureInspection" enabled="true" level="WARNING" enabled_by_default="true" />
124121
<inspection_tool class="PhpMethodOrClassCallIsNotCaseSensitiveInspection" enabled="true" level="WARNING" enabled_by_default="true" />
125-
<inspection_tool class="PhpMissingDocCommentInspection" enabled="true" level="WARNING" enabled_by_default="true">
126-
<option name="SKIP_EMPTY_FUNCTION" value="false" />
127-
<option name="SKIP_EMPTY_METHOD" value="false" />
128-
</inspection_tool>
122+
<inspection_tool class="PhpMissingDocCommentInspection" enabled="true" level="WARNING" enabled_by_default="true" />
129123
<inspection_tool class="PhpMissingParentCallCommonInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
130124
<inspection_tool class="PhpMissingParentCallMagicInspection" enabled="true" level="WARNING" enabled_by_default="true" />
131125
<inspection_tool class="PhpMissingStrictTypesDeclarationInspection" enabled="true" level="WARNING" enabled_by_default="true" />
132-
<inspection_tool class="PhpShortOpenTagInspection" enabled="true" level="WARNING" enabled_by_default="true" />
133126
<inspection_tool class="PhpStanGlobal" enabled="true" level="WEAK WARNING" enabled_by_default="true">
134127
<option name="level" value="8" />
135128
<option name="config" value="phpstan.neon.dist" />

php-cs-fixer.php

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
# Temporary solution for PhpStorm quality tools as php-cs-fixer is not supporting php 8.2 currently
6+
putenv('PHP_CS_FIXER_IGNORE_ENV=1');
7+
include __DIR__ . '/vendor/bin/php-cs-fixer';

tools/01_phpunit/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "",
44
"require": {},
55
"require-dev": {
6-
"phpunit/phpunit": "9.5.*",
6+
"phpunit/phpunit": "9.6.*",
77
"roave/security-advisories": "dev-latest"
88
},
99
"config": {

tools/01_phpunit/composer.lock

+63-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)