Magento Coding Standard (PHPCS) report for sbodak/magento2-checkout-custom-form =============================================================================== Package version: 2.0.0 | Magento: 2.4.9 | Tested: 2026-06-01 18 errors, 138 warnings in 23 files src/Plugin/Block/Adminhtml/CustomFields.php 20:4 warning Tag @category MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 21:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 51:57 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) src/Helper/Config.php 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 30:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 50:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) src/Model/Data/CustomFields.php 21:4 warning Tag @category MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 22:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 24:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 47:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 52:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 57:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 62:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 67:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 72:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 77:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 82:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 87:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 96:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 101:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 106:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 111:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 116:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Model/Config/Source/Option.php 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Model/CustomFieldsRepository.php 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 30:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 32:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 33:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 37:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 61:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 62:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 64:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 72:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 79:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 80:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 82:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 92:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) src/Model/CustomFields/Validator.php 22:36 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 29:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 30:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 60:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 69:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 78:31 warning The use of function call_user_func() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) src/Model/Checkout/LayoutProcessor/Plugin.php 59:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 59:66 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 59:67 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 96:40 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 100:44 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 111:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Model/CustomFieldsGuestRepository.php 21:4 warning Tag @category MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 22:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 24:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 29:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 31:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 32:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Observer/AddCustomFieldsToOrder.php 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:66 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 21:67 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) src/Observer/Sales/OrderLoadAfter.php 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:96 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 21:97 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Setup/Patch/Data/AddCustomFields.php 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:93 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 23:94 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 49:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 54:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Setup/Uninstall.php 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/view/frontend/templates/order/view/custom_fields.phtml 10:61 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 13:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 14:37 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 17:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 18:37 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 21:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 22:37 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 25:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 26:37 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 32:65 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 34:29 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 34:43 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) src/view/frontend/web/template/shipping.html 1:1 error Avoid using self-closing tag with non-void html element - "
(Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - "
(Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - "
(Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - "
(Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - "
(Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) src/view/adminhtml/templates/order/view/custom_fields.phtml 9:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 15:69 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 17:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 23:69 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 23:109 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 25:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 31:69 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 31:108 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 33:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 39:69 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 41:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 49:69 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 51:33 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 51:47 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) src/Api/CustomFieldsGuestRepositoryInterface.php 21:4 warning Tag @category MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 22:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) src/Api/Data/CustomFieldsInterface.php 18:4 warning Tag @category MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 19:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 23:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 29:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 125:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 126:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 130:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 131:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 135:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 136:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 140:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 141:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 145:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 146:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Api/CustomFieldsRepositoryInterface.php 21:4 warning Tag @category MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 22:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) src/Test/Helper/ConfigTest.php 19:45 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:46 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 21:40 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 22:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) src/Test/Model/Data/CustomFieldsTest.php 17:31 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 18:26 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) src/Test/Model/CustomFields/ValidatorTest.php 17:31 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 18:35 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:23 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) src/Test/Observer/AddCustomFieldsToOrderTest.php 19:31 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:36 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) src/Block/Order/CustomFields.php 25:4 warning Tag @category MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 26:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 28:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 31:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar)