Magento Coding Standard (PHPCS) report for magentix/magento2-module-form-select2 ================================================================================ Package version: 100.1.0 | Magento: 2.4.9 | Tested: 2026-05-27 2 errors, 19 warnings in 6 files Model/Search.php 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 24:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 25:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 27:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 56:9 warning Expected "foreach (...) {\n"; found "foreach(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 56:9 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 62:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) 64:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 73:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 78:9 warning Expected "foreach (...) {\n"; found "foreach(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 78:9 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) etc/module.xml 3:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Controller/Adminhtml/Ajax/Search.php 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 61:11 warning Exceptions must not be handled in the same function where they are thrown. (Magento2.Exceptions.ThrowCatch.ThrowCatch) 71:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) view/adminhtml/templates/config.phtml 8:39 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/adminhtml/web/template/form/element/select2.html 1:1 error Avoid using self-closing tag with non-void html element - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)