Magento Coding Standard (PHPCS) report for alekseon/widget-forms ================================================================ Package version: 102.5.8 | Magento: 2.4.9 | Tested: 2026-09-29 8 errors, 97 warnings in 23 files Plugin/FromAttributeGroupCodesPlugin.php 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 28:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 33:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 34:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 45:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 46:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/RemoveAttributesFromGeneralTabPlugin.php 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 17:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 18:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 19:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/RemoveWidgetGroupAttributesFromGeneralTabPlugin.php 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 17:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 18:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 19:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/NewsletterEmailValidatorPlugin.php 17:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 19:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 38:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 45:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 47:12 warning $validators parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Plugin/AddFormFieldsetWarningPlugin.php 14:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 16:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 20:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 21:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Model/Attribute/Source/TextFormAttributes.php 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) Model/Config/Source/AvailableForms.php 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 17:8 warning Content missing for @var tag in class property declaration. (Magento2.Commenting.ClassPropertyPHPDocFormatting.EmptyVar) 32:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 46:9 warning Expected "foreach (...) {\n"; found "foreach (...)\n {\n" (PEAR.ControlStructures.ControlSignature.Found) 46:55 warning Expected 1 space after closing parenthesis; found newline (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) Observer/SubscribeToNewsletter.php 20:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 22:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 114:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Observer/FormRecordAttributeSaveAfter.php 15:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 17:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) Observer/AddFrontendInputBlockOptions.php 15:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 17:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 42:68 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 52:24 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 52:89 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) Setup/Patch/Data/CreateWidgetFormsAttributesPatch.php 76:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 168:35 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 179:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Controller/Form/Submit.php 18:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 21:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 112:24 warning The use of the deprecated method 'getResource()' to 'save' the data detected. (Magento2.Methods.DeprecatedModelMethod.FoundDeprecatedModelMethod) 149:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 152:12 warning $formRecord parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 164:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 167:12 warning $formRecord parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Controller/Form/Success.php 18:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 21:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 100:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 115:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 138:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 138:37 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 138:38 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 142:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 142:37 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 142:38 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) view/frontend/templates/form/success.phtml 15:17 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/frontend/templates/form/action.phtml 14:27 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) view/frontend/templates/form/tab.phtml 9:2 warning Expected 1 space after asterisk; 2 found (Squiz.Commenting.DocCommentAlignment.SpaceAfterStar) view/frontend/templates/widget_form.phtml 14:63 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 20:83 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 27:55 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 29:72 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 30:47 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 31:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 32:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) Block/Form/Success.php 16:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 32:8 warning Content missing for @var tag in class property declaration. (Magento2.Commenting.ClassPropertyPHPDocFormatting.EmptyVar) 61:19 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Block/Form/AdditionalInfo.php 14:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 16:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) Block/Form/Action.php 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) Block/WidgetForm.php 21:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 26:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 27:5 warning The implements keyword must be on the same line as the class name (PSR2.Classes.ClassDeclaration.ImplementsLine) 38:8 warning Content missing for @var tag in class property declaration. (Magento2.Commenting.ClassPropertyPHPDocFormatting.EmptyVar) 42:8 warning Content missing for @var tag in class property declaration. (Magento2.Commenting.ClassPropertyPHPDocFormatting.EmptyVar) 73:12 warning $jsonHexTag parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 211:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 247:19 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 247:41 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 247:42 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 253:23 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 253:45 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 253:46 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Block/Adminhtml/Form/Edit/Tab/NewsletterSettings.php 16:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 18:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 71:38 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 76:70 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) 81:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Block/Adminhtml/Form/Edit/Tab/WidgetSettings.php 16:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 77:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 89:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 101:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent) 101:19 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 101:39 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine)