Close [x]

PHP coding standard

Edit this page on GitHub

The Magento core development team uses the Basic Coding Standard and Coding Style Guide. Magento recommends that developers who create Magento extensions and customizations also use these standards.

Where possible, use PHP_CodeSniffer to automatically enforce these standards. Otherwise, standards and requirements must be applied through rigorous code review.