Valid AD0-E718 Dumps shared by ExamDiscuss.com for Helping Passing AD0-E718 Exam! ExamDiscuss.com now offer the newest AD0-E718 exam dumps, the ExamDiscuss.com AD0-E718 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AD0-E718 dumps with Test Engine here:
An Architect agrees to improve company coding standards and discourage using Helper classes in the code by introducing a new check with PHPCS. The Architect creates the following: * A new composer package under the AwesomeAgency\CodingStandard\ namespace * The ruleset. xml file extending the Magento 2 Coding Standard What should the Architect do to implement the new code rule? A) B) C)
Correct Answer: C
To implement the new code rule, the Architect should create a new class that extends the \PHP_CodeSniffer\Sniffs\Sniff interface and implements the register() and process() methods. The register() method should return an array of tokens that the rule applies to, such as T_STRING for class names. The process() method should contain the logic to check if the class name contains Helper and report an error if so. The Architect should also add a reference to the new class in the ruleset.xml file under the <rule> element with a ref attribute. This will enable PHPCS to use the new rule when checking the code.