Magento Coding Standard (PHPCS) report for corrivate/magento2-composer-dashboard ================================================================================ Package version: 0.7.0 | Magento: 2.4.9 | Tested: 2026-07-23 7 errors, 142 warnings in 36 files src/ViewModel/Options/SeverityOptions.php 12:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 12:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/ViewModel/Options/DirectOptions.php 12:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 12:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/ViewModel/Options/UpgradeOptions.php 12:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 12:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/ViewModel/Options/AbandonedOptions.php 12:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 12:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Provider/InstalledPackagesArrayProvider.php 12:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 49:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 49:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Provider/AuditArrayProvider.php 12:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 43:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 43:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Model/Composer/InstalledPackages.php 22:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 28:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 42:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 106:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 136:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 138:16 warning Expected "match (...) {\n"; found "match(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 138:16 warning Expected 1 space after MATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 146:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 146:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Model/Composer/Audit.php 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25: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) 28:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 42:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 93:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 107:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 117:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 119:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 119:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Model/Meta/PackageAliases.php 8:12 warning $aliases parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 11: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) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Model/Config/Settings.php 17:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 23:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 35:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 35:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 36:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 50:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 50:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 59:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 64:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 69:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 69:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 80:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 80:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 91:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Model/Config/Source/CronSchedule.php 13:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 13:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Model/Value/AuditIssue.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 29: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) src/Model/Value/InstalledPackage.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33: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) 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Model/System/Message/AuditIssues.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 39:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 47:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 64:16 warning Expected "match (...) {\n"; found "match(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 64:16 warning Expected 1 space after MATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) src/Model/Cache/ComposerCache.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 27:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 38:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 38:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 51:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 53:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 67:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 67:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Setup/Patch/Data/EnableCustomCache.php 11:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 22:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Controller/Adminhtml/Audit/Index.php 9:1 warning There must be one blank line after the last USE statement; 2 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Controller/Adminhtml/Installed/Index.php 9:1 warning There must be one blank line after the last USE statement; 2 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/view/adminhtml/templates/email/outdated.phtml 15:43 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 16:15 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) src/view/adminhtml/templates/email/advisories.phtml 14:15 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 15:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 17:42 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) src/view/adminhtml/templates/grid/installed/preamble.phtml 7:1 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) src/view/adminhtml/templates/grid/cell/semver-status.phtml 12:10 warning Expected 1 space after MATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 19:79 warning Constants are not allowed as the first argument of translation function, use string literal instead (Magento2.Translation.ConstantUsage.VariableTranslation) 22:33 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) src/view/adminhtml/templates/grid/cell/abandoned.phtml 12:7 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 13:61 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 15:15 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) src/view/adminhtml/templates/grid/cell/direct-package.phtml 12:7 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) src/view/adminhtml/templates/grid/cell/external-link.phtml 11:119 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) src/view/adminhtml/templates/grid/cell/cve-severity.phtml 12:10 warning Expected 1 space after MATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 19:33 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) src/view/adminhtml/templates/grid/cell/package-name.phtml 15:7 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) src/view/adminhtml/email/composer_security_advisories.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Template @vars comment block is missing a variable used in the template. Missing variable: var store_url (Magento2.Html.HtmlDirective.HtmlTemplatesUndefinedVariable) 1:1 warning Template @vars comment block is missing a variable used in the template. Missing variable: var store.getFrontendName() (Magento2.Html.HtmlDirective.HtmlTemplatesUndefinedVariable) 1:1 warning Template @vars comment block is missing a variable used in the template. Missing variable: var store_url (Magento2.Html.HtmlDirective.HtmlTemplatesUndefinedVariable) src/view/adminhtml/email/composer_outdated_packages.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Template @vars comment block is missing a variable used in the template. Missing variable: var store_url (Magento2.Html.HtmlDirective.HtmlTemplatesUndefinedVariable) 1:1 warning Template @vars comment block is missing a variable used in the template. Missing variable: var store.getFrontendName() (Magento2.Html.HtmlDirective.HtmlTemplatesUndefinedVariable) 1:1 warning Template @vars comment block is missing a variable used in the template. Missing variable: var store_url (Magento2.Html.HtmlDirective.HtmlTemplatesUndefinedVariable) src/Api/InstalledPackagesInterface.php 3:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 8:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 8:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Api/AuditInterface.php 3:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 8:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 8:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Cron/WarmCache.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) src/Cron/SendOutdatedReminders.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25: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) 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 49:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 76:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) 77:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 79:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) src/Cron/SendAdvisoryReminders.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 44:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 71:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) src/Block/Adminhtml/Email/Outdated.php 12:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 21:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) src/Block/Adminhtml/Email/Advisories.php 12:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 21:9 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)