Code Styles
Please ensure that your source code uses the Shopware guidelines regarding code styles. Use the following tools and commands to scan your source code. Please note some features provide the option to "auto-fix" problems. Keep in mind that you need to download affected files to your host in that case. Maybe just download everything, GIT will show you all diffs anyway.
CS Fixer
IN DOCKER
ESLint Run this command do analyze and auto-fix your modifications in the administration.IN DOCKER
IN DOCKER
PHPStan and Psalm Last but not least, run the static analyzer to check your code quality with help of PHPStan and Psalm.
IN DOCKER
Here is a final copy-paste script that you can use to run all these tools and also automatically download the source code again.
ON HOST
Last updated