Magento Coding Standard (PHPCS) report for sansec/magento2-module-shield
========================================================================
Package version: 1.0.26 | Magento: 2.4.9 | Tested: 2026-07-20
14 errors, 137 warnings in 35 files
Plugin/Shield.php
35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
51:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
64:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
74:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Model/Report.php
34:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
52:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
61:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
73:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
83:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
121:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Model/Config.php
19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
30:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
45:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
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)
Model/Waf.php
14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Model/Serializer.php
9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Model/IP.php
13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
18:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
25:25 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
25:66 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
34:28 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
37:49 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning)
50:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Model/Rules.php
40:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
58:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
75:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
101:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
105:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
109:22 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
121:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
133:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
137:22 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
142:22 warning The use of function base64_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
156:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
163:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
171:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Model/ConditionFactory.php
7:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)
8:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)
Model/Rule.php
22:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
34:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
67:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
81:30 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
84:30 warning The use of function rawurldecode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged)
101:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
116:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
134:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
157:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Model/RuleFactory.php
15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
21:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)
22:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)
Model/Condition.php
19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Setup/Patch/Schema/ChangeFlagDataToMediumText.php
14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
19:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Console/Command/SyncRules.php
20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
27:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
34:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
view/base/templates/access_denied.phtml
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)
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)
1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag)
Cron/SyncRules.php
20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Test/Plugin/ShieldTest.php
4:43 error Cannot use "false" in namespace as it is reserved since PHP 7 (Magento2.NamingConvention.ReservedWords.ForbiddenAsNameSpace)
15:47 error Cannot use "false" in namespace as it is reserved since PHP 7 (Magento2.NamingConvention.ReservedWords.ForbiddenAsNameSpace)
15:47 error Cannot use "false" in namespace as it is reserved since PHP 7 (Magento2.NamingConvention.ReservedWords.ForbiddenAsNameSpace)
16:9 error Each class must be in a file by itself (PSR1.Classes.ClassDeclaration.MultipleClasses)
39:5 error Each class must be in a file by itself (PSR1.Classes.ClassDeclaration.MultipleClasses)
Test/Model/RuleTest.php
25:68 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma)
122:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/carts-mine-payment-information.php
4:395 warning Line exceeds 120 characters; contains 395 characters (Generic.Files.LineLength.TooLong)
27:1113 warning Line exceeds 120 characters; contains 1113 characters (Generic.Files.LineLength.TooLong)
33:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
52:503 warning Line exceeds 120 characters; contains 503 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/account-create.php
27:547 warning Line exceeds 120 characters; contains 547 characters (Generic.Files.LineLength.TooLong)
30:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong)
31:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/account-logout.php
4:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
28:1113 warning Line exceeds 120 characters; contains 1113 characters (Generic.Files.LineLength.TooLong)
33:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong)
35:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
57:503 warning Line exceeds 120 characters; contains 503 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/estimate-shipping-methods.php
4:232 warning Line exceeds 120 characters; contains 232 characters (Generic.Files.LineLength.TooLong)
27:1085 warning Line exceeds 120 characters; contains 1085 characters (Generic.Files.LineLength.TooLong)
33:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
52:481 warning Line exceeds 120 characters; contains 481 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/account-create-post.php
28:942 warning Line exceeds 120 characters; contains 942 characters (Generic.Files.LineLength.TooLong)
33:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong)
35:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
63:413 warning Line exceeds 120 characters; contains 413 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/category.php
28:358 warning Line exceeds 120 characters; contains 358 characters (Generic.Files.LineLength.TooLong)
30:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong)
31:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/set-payment-information.php
27:1085 warning Line exceeds 120 characters; contains 1085 characters (Generic.Files.LineLength.TooLong)
33:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
52:481 warning Line exceeds 120 characters; contains 481 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/customer-section.php
6:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong)
26:529 warning Line exceeds 120 characters; contains 529 characters (Generic.Files.LineLength.TooLong)
30:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/carts-mine-totals.php
27:1107 warning Line exceeds 120 characters; contains 1107 characters (Generic.Files.LineLength.TooLong)
31:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
53:497 warning Line exceeds 120 characters; contains 497 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/homepage.php
28:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong)
29:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/checkout.php
28:1089 warning Line exceeds 120 characters; contains 1089 characters (Generic.Files.LineLength.TooLong)
31:162 warning Line exceeds 120 characters; contains 162 characters (Generic.Files.LineLength.TooLong)
32:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong)
53:485 warning Line exceeds 120 characters; contains 485 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/inventory.php
6:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
27:385 warning Line exceeds 120 characters; contains 385 characters (Generic.Files.LineLength.TooLong)
30:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/cart-add.php
27:385 warning Line exceeds 120 characters; contains 385 characters (Generic.Files.LineLength.TooLong)
33:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
39:177 warning Line exceeds 120 characters; contains 177 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/checkout-success.php
26:1113 warning Line exceeds 120 characters; contains 1113 characters (Generic.Files.LineLength.TooLong)
29:158 warning Line exceeds 120 characters; contains 158 characters (Generic.Files.LineLength.TooLong)
30:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
51:503 warning Line exceeds 120 characters; contains 503 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/swatches.php
27:385 warning Line exceeds 120 characters; contains 385 characters (Generic.Files.LineLength.TooLong)
30:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Test/fixture/request/newsletter.php
27:519 warning Line exceeds 120 characters; contains 519 characters (Generic.Files.LineLength.TooLong)
30:144 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong)
Test/Performance/RuleMatchingTest.php
44:152 warning Line exceeds 120 characters; contains 152 characters (Generic.Files.LineLength.TooLong)
45:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong)
Test/RequestStub.php
10:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
11:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
12:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
13:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
14:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
15:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
16:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
20:25 warning Incorrect spacing between argument "$method" and equals sign; expected 1 but found 2 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals)
21:25 warning Incorrect spacing between argument "$uri" and equals sign; expected 1 but found 5 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals)
22:25 warning Incorrect spacing between argument "$headers" and equals sign; expected 1 but found 2 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals)
23:25 warning Incorrect spacing between argument "$params" and equals sign; expected 1 but found 3 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals)
24:25 warning Incorrect spacing between argument "$cookies" and equals sign; expected 1 but found 2 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals)
25:25 warning Incorrect spacing between argument "$post" and equals sign; expected 1 but found 5 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals)