Magento Coding Standard (PHPCS) report for brocode/module-amqp-monitor ====================================================================== Package version: 1.1.0 | Magento: 2.4.9 | Tested: 2026-05-26 35 errors, 100 warnings in 19 files Model/Notifications/EmailNotificationPublisher.php 16:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 17:30 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:168 warning Line exceeds 120 characters; contains 168 characters (Generic.Files.LineLength.TooLong) Model/Notifications/CompositeNotificationPublisher.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ThresholdValidator/MaxMessageCountThresholdValidator.php 11:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ThresholdValidator/CompositeThresholdValidator.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:13 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) Model/ThresholdValidator/MessageGrowthThresholdValidator.php 11:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 22:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 27:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ManagementApiService.php 25:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 54:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 66:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 67:164 warning Line exceeds 120 characters; contains 164 characters (Generic.Files.LineLength.TooLong) 75:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 84:36 warning The use of function print_r() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 88:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 93:70 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) 93:189 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) 93:272 warning Line exceeds 120 characters; contains 272 characters (Generic.Files.LineLength.TooLong) 100:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 108:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/MonitorService.php 14:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 15:25 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:26 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 17:18 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:44 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 49:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 59:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 60:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 73:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 74:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 89:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 90:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 91:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Controller/Adminhtml/Monitor/Index.php 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 17:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 34:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) view/adminhtml/templates/information_overview.phtml 4:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 5:1 warning Line indented incorrectly; expected 4 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 17:43 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 17:88 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 17:129 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 18:62 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 19:50 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 20:56 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/adminhtml/templates/amqp_configuration.phtml 5:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 6:1 warning Line indented incorrectly; expected 4 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 7:9 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 14:66 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 16:54 warning The use of function _() is discouraged; use Magento\Framework\Translate\AdapterInterface::translate() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 16:54 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 17:54 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 23:29 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 24:29 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 35:66 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 37:54 warning The use of function _() is discouraged; use Magento\Framework\Translate\AdapterInterface::translate() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 37:54 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 38:54 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 44:29 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 45:29 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/adminhtml/templates/queue_listing.phtml 4:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 5:1 warning Line indented incorrectly; expected 4 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 6:9 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 10:58 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 11:58 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 12:58 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 15:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 16:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 17:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 18:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 19:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 20:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 21:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 22:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 23:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 24:46 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 30:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 31:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 33:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 34:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 35:21 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/adminhtml/email/monitor-notification.html 1:1 warning Template @vars comment block contains invalid JSON. (Magento2.Html.HtmlDirective.HtmlTemplatesInvalidVarsJSON) Api/NotificationThresholdValidatorInterface.php 7:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Api/NotificationPublisherInterface.php 7:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Api/Constants.php 7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 11:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 14:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 17:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Cron/CheckQueueMessageCountCron.php 13:28 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 14:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 15:44 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:53 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 23:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 23:12 warning $notificationThresholdValidator parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Block/Adminhtml/QueueListing.php 3:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 12:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:8 warning $amqpConfig parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 25:12 warning $managementApiService parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 27:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:33 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 40:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Block/Adminhtml/AmqpConfiguration.php 13:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 21:8 warning $amqpConfig parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 26:12 warning $managementApiService parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 46:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Block/Adminhtml/InformationOverview.php 3:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 12:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:8 warning $amqpConfig parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 25:12 warning $managementApiService parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 27:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:46 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 39:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)