Magento Coding Standard (PHPCS) report for tig/postcode-magento2 ================================================================ Package version: 1.7.0 | Magento: 2.4.9 | Tested: 2026-05-27 6 errors, 99 warnings in 17 files Plugin/Model/ResourceModel/Country/CollectionPlugin.php 90:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 154:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 217:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 280:143 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 336:8 warning $sortOrderBase parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 337:8 warning $sortOrderIncrement parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 338:8 warning $country parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) Plugin/Model/Osc/LayoutProcessorPlugin.php 245:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) Plugin/Model/Config/EnabledDisabled.php 9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Plugin/Model/Checkout/LayoutProcessorPlugin.php 91:9 warning Space found after opening bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen) 91:18 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 221:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 20 (PSR2.Methods.FunctionCallSignature.Indent) 222:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 20 (PSR2.Methods.FunctionCallSignature.Indent) 223:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent) Controller/Address/Service.php 243:174 warning Line exceeds 120 characters; contains 188 characters (Generic.Files.LineLength.TooLong) view/adminhtml/templates/config/parsing/streets.phtml 37:32 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) view/adminhtml/templates/config/support/tab.phtml 40:1 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 44:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 48:1 warning Line exceeds 120 characters; contains 146 characters (Generic.Files.LineLength.TooLong) 49:47 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 50:28 warning Line indented incorrectly; expected 28 spaces, found 27 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 51:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 58:54 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 58:100 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 64:47 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 64:128 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) 65:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 69:34 warning Line indented incorrectly; expected at least 36 spaces, found 33 (Generic.WhiteSpace.ScopeIndent.Incorrect) 70:34 warning Line indented incorrectly; expected 36 spaces, found 33 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 71:51 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 78:47 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 79:28 warning Line indented incorrectly; expected 28 spaces, found 27 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 80:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 87:54 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 87:116 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 93:47 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 94:28 warning Line indented incorrectly; expected 28 spaces, found 27 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 95:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 102:54 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 102:100 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 109:29 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 114:56 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 118:56 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 122:56 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 129:57 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 140:55 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 140:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 141:36 warning Line indented incorrectly; expected 36 spaces, found 35 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 142:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 147:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 149:62 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 149:120 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 154:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 159:55 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 160:36 warning Line indented incorrectly; expected 36 spaces, found 35 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 161:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 166:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 168:62 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 168:115 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 180:57 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 190:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 192:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 192:124 warning Line exceeds 120 characters; contains 147 characters (Generic.Files.LineLength.TooLong) 195:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 195:124 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 203:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 205:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 205:128 warning Line exceeds 120 characters; contains 151 characters (Generic.Files.LineLength.TooLong) 208:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 208:128 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 216:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 218:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 218:124 warning Line exceeds 120 characters; contains 147 characters (Generic.Files.LineLength.TooLong) 221:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 221:124 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 229:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 231:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 231:122 warning Line exceeds 120 characters; contains 145 characters (Generic.Files.LineLength.TooLong) 234:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 234:122 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 242:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 244:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 244:103 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 247:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 255:29 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 260:56 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 271:60 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 281:29 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 286:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 293:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) Webservices/Api.php 142:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) Services/Validation/Request.php 97:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Services/Converter/Factory.php 48:57 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) Services/Converter/Request.php 52:64 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) Config/Provider/ApiConfiguration.php 106:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Test/TestCaseFinder/PHPUnit4.php 34:1 warning Duplicate class name "TIG\Postcode\Test\TestCaseFinder" found; first defined in /data/vendor/tig/postcode-magento2/Test/TestCaseFinder/PHPUnit6.php on line 35 (Generic.Classes.DuplicateClassName.Found) Test/Unit/Webservice/ApiTest.php 182:30 error Class 'Zend_Http_Response' is restricted in /data/vendor/tig/postcode-magento2/Test/Unit/Webservice/ApiTest.php. Suggested replacement: Laminas\Http\Response (Magento2.Legacy.RestrictedCode.ZendHttpIsRestricted) 242:30 error Class 'Zend_Http_Response' is restricted in /data/vendor/tig/postcode-magento2/Test/Unit/Webservice/ApiTest.php. Suggested replacement: Laminas\Http\Response (Magento2.Legacy.RestrictedCode.ZendHttpIsRestricted) 302:30 error Class 'Zend_Http_Response' is restricted in /data/vendor/tig/postcode-magento2/Test/Unit/Webservice/ApiTest.php. Suggested replacement: Laminas\Http\Response (Magento2.Legacy.RestrictedCode.ZendHttpIsRestricted) 365:30 error Class 'Zend_Http_Response' is restricted in /data/vendor/tig/postcode-magento2/Test/Unit/Webservice/ApiTest.php. Suggested replacement: Laminas\Http\Response (Magento2.Legacy.RestrictedCode.ZendHttpIsRestricted) 380:66 error Class 'Zend_Http_Client_Exception' is restricted in /data/vendor/tig/postcode-magento2/Test/Unit/Webservice/ApiTest.php. Suggested replacement: Laminas\Http\Exception\RuntimeException (Magento2.Legacy.RestrictedCode.ZendHttpIsRestricted) Test/Unit/Config/CheckoutConfiguration/ActionUrlTest.php 69:202 warning Line exceeds 120 characters; contains 202 characters (Generic.Files.LineLength.TooLong) Test/Unit/Config/Provider/ApiConfigurationTest.php 48:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) Block/Adminhtml/Config/Support/Tab.php 42:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 44:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)