Learn more about using rule sets with PHP CodeSniffer ruleset Literal Namespace Ruleįor class name resolution, use the ::class keyword instead of a string literal for every class name reference outside of that class. This article describes how to configure PSR2 code PhpStorm the specification checking and saving automatic formatting repair, as well as the code which. The set of Magento rules is located in ruleset.xml file of Magento Coding Standard. It provides the mechanism of checking code compliance with specific coding standard. PHP_CodeSniffer is the most popular tool in use throughout the PHP development community. Raw SQL queries and many other general PHP and Magento-specific code issues.ĭevelopers should consistently use PHP_CodeSniffer to enhance the readability of the code and ensure that it meets the Magento Coding Standard.The Magento Coding Standard provides a set of rules that covers the following: We recommend that developers who create extensions and customizations also use this standard. The Magento core development team uses the Magento Coding Standard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |