You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
- Code formating : [php-cs-fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer) configured using prestashop standard, ready to use out of the box.
23
-
- Code analysis : [phpstan](https://phpstan.org/)almost ready to use with Prestashop standard, it asks a question then you're ready.
23
+
- Code analysis : [phpstan](https://phpstan.org/)autodetect PrestaShop root directory or asks (nothing more to do).
24
24
-`fill-indexes` command, to add required index.php files. (see below for details)
25
25
- git pre-commit hook installer (details below)
26
26
@@ -65,16 +65,19 @@ Allows complying with the [Prestashop standards](https://devdocs.prestashop.com/
65
65
66
66
`composer psdt:phpstan [--reconfigure]`
67
67
68
-
Run Phpstan from prestashop/prestashop-dev-tools.
68
+
Run phpstan configured with [Prestashop standards](https://devdocs.prestashop.com/1.7/development/coding-standards/) against a PrestaShop installation.
69
69
70
-
Just like psdt:php-cs-fixer, the first run install the package and creates/overrides the phpstan.neon configuration with Prestashop standards.
70
+
The first run or `composer psdt:phpstan --reconfigure` do :
71
+
- install `prestashop/prestashop-dev-tools` if needed
72
+
- creates/overrides the phpstan.neon configuration with Prestashop standards.
73
+
- guess the \_PS_ROOT_DIR_ and asks for confirmation (or you can provide another path) (this path is needed for analyse)
74
+
- install a composer script `phpstan`
75
+
76
+
The next runs will trigger `composer psdt:phpstan`
71
77
72
78
Provided by [PrestaShop/php-dev-tools/](https://github.com/PrestaShop/php-dev-tools/).
73
79
Autoinstallation provided by this package.
74
80
75
-
Allows complying with the [Prestashop standards](https://devdocs.prestashop.com/1.7/development/coding-standards/).
0 commit comments