Magento Coding Standard (PHPCS) report for imi/magento2-friendly-captcha ======================================================================== Package version: 4.3.0 | Magento: 2.4.9 | Tested: 2026-06-17 16 errors, 51 warnings in 22 files Enum/EndpointEnum.php 35:16 warning Expected "match (...) {\n"; found "match(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 35:16 warning Expected 1 space after MATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 51:16 warning Expected "match (...) {\n"; found "match(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 51:16 warning Expected 1 space after MATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 67:16 warning Expected "match (...) {\n"; found "match(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 67:16 warning Expected 1 space after MATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) Plugin/GraphQl/ContactUsPlugin.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 30:8 warning $context parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 36:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 36:12 warning $subject parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 36:12 warning $proceed parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 36:12 warning $field parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Plugin/Block/Account/AuthenticationPopupPlugin.php 47:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 48:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Exception/InvalidSolutionException.php 15:21 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 17:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 17:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config.php 133:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 134:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 143:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 157:96 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 176:65 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Provider/Failure/RedirectUrl/SimpleUrlProvider.php 34:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 35:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) Model/Config/Source/Endpoint.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) Model/Validator/ValidatorV1.php 47:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Validator/AbstractValidator.php 33:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 66:24 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 68:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 77:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 79:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 89:21 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Validator/ValidatorV2.php 47:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Validate.php 62:12 warning $validatorByEndpoint parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Observer/FriendlyCaptchaObserver.php 53:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 67:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 68:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Setup/Patch/Data/MigrateEuEndpointConfig.php 17:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Setup/Patch/Data/EncryptExistingApiKeys.php 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 51:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 56:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) view/frontend/web/template/friendlyCaptcha.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) view/frontend/web/css/source/_module.less 2:5 warning Id selector is used (Magento2.Less.AvoidId.IdSelectorUsage) view/frontend/web/js/vendor/friendly-challenge/widget.js 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) view/frontend/web/js/vendor/friendly-challenge/index.js 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) view/frontend/web/js/vendor/friendly-challenge/widget.module.js 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) view/frontend/web/js/vendor/friendly-challenge/compat/index.js 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) Api/ValidateInterface.php 21:15 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) Block/Frontend/FriendlyCaptcha.php 79:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 139:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 140:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)