The shopware team uses the following coding standards. All contributions to Shopware as well as plugins and customizations should also use these standards.
If not stated otherwise we use the following coding styles for all source files:
You can automatically check and fix the coding style with php-cs-fixer:
php-cs-fixer fix -v --level=psr2 /path/to/files
Please see the following blog post for the CSS Coding Guidelines.
Please see our dedicated page for the Smarty / HTML Coding Guidelines.