QuestionQ30
VerifiedEnforce coding standardsAn Adobe Commerce Architect executes PHP Mess Detector from the command-line interface using the coding standard supplied with Adobe Commerce. The following output is displayed:

The Architect reviews the class and observes that its constructor has 15 parameters. Five of those parameters are scalars that configure the behavior of MyService. The class also has three constants that reference another class.
How should the Architect correct the code to comply with the coding-standard rule?
Community Discussion