Magento Coding Standard (PHPCS) report for magepal/magento2-customshippingrate ============================================================================== Package version: 1.9.1 | Magento: 2.4.9 | Tested: 2026-05-27 7 errors, 110 warnings in 10 files Plugin/Quote/Address/Total/ShippingPlugin.php 35:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 36:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 74:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 75:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 75:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 76:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 93:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 94:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 94:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 95:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 96:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 128:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 129:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 129:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 130:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 149:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 150:8 warning array parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 150:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 153:15 warning $jsonToArray parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Plugin/Model/Quote/AddressPlugin.php 15:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 16:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Helper/Data.php 52:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 53:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 66:57 error The use of function unserialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::unserialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 87:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 89:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 89:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 90:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 107:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 108:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 123:8 warning Tags visual alignment must be consistent (Magento2.Annotation.MethodAnnotationStructure.MethodArguments) 124:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 148:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 149:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 164:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 165:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 172:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 173:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 173:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 183:24 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Model/Carrier.php 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 50:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 149:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 150:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 157:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 158:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 166:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 167:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) etc/acl.xml 10:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 11:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 12:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 13:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 14:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 15:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 16:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 17:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 18:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 19:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 20:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 21:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 22:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) view/adminhtml/templates/order/create/shipping/method/form.phtml 23:73 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 23:117 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 33:53 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 39:52 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 40:58 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 42:89 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 43:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 54:54 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 61:61 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 70:23 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 70:23 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 70:37 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 70:90 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 70:137 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 78:40 warning Short echo tag syntax must be used; expected "