Magento Coding Standard (PHPCS) report for magma/magento2-italian-regions ========================================================================= Package version: 1.1.4 | Magento: 2.4.9 | Tested: 2026-05-26 4 errors, 13 warnings in 2 files Setup/UpgradeData.php 1:1 error UpgradeData scripts are obsolete. Please use data patches approach in module's Setup/Patch/Data dir (Magento2.Legacy.InstallUpgrade.ObsoleteUpgradeDataScript) 13:51 warning Opening brace of a class must be on the line after the definition (PSR2.Classes.ClassDeclaration.OpenBraceNewLine) 16:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:94 warning Expected 0 spaces before closing parenthesis; 1 found (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingBeforeClose) 32:96 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 33:66 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 39:24 warning Possible raw SQL statement "SELECT region_id from " detected. (Magento2.SQL.RawQuery.FoundRawSql) 39:149 warning Line exceeds 120 characters; contains 149 characters (Generic.Files.LineLength.TooLong) 43:21 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 44:165 warning Line exceeds 120 characters; contains 165 characters (Generic.Files.LineLength.TooLong) 47:21 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 47:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) Setup/InstallData.php 1:1 error InstallData scripts are obsolete. Please use data patches approach in module's Setup/Patch/Data dir (Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript) 7:1 warning There must be one blank line after the last USE statement; 2 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 13:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 156:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines)