Magento Coding Standard (PHPCS) report for webrotate360/module-product-viewer-adhoc
===================================================================================
Package version: v2.6.0 | Magento: 2.4.9 | Tested: 2026-05-27
35 errors, 170 warnings in 17 files
Helper/Data.php
3:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter)
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)
10: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)
12: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)
15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
16: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)
19:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
21:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
23:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
28:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)
30:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
31:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
32:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
33:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
35:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
38:65 warning The closing parenthesis of a multi-line function declaration must be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine)
39: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:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
51:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
53:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
56:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
57:62 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
59:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
65:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
67:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
70:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
71:62 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage)
73:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
79:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
81:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong)
89:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
91:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong)
94:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
99:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
104:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
107:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
113:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
118:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
123:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
128:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
130:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)
133:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
135:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong)
136:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
139:44 warning Space found before comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma)
142:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
144:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong)
145:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
148:44 warning Space found before comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma)
151:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
153:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
154:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
157:44 warning Space found before comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma)
160:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
162:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
163:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
166:44 warning Space found before comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma)
169:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
171:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)
174:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
176:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong)
179:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
181:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
184:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
186:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong)
189:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
191:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
192:23 warning Expected 1 space after closing parenthesis; found newline (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
203:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
205:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong)
208:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
210:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)
213:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
215:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong)
218:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
220:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)
221:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
Model/Config/Source/PopupMode.php
7:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
9:16 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
10:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
15:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
20:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
26:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)
Model/Config/Source/PopupSkin.php
7:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
9:16 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
10:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
15:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
20:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
25:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
30:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
35:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
40:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
45:13 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
51:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)
Model/Config/Source/ViewerSkin.php
7:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
9:16 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
10:12 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
15:12 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
20:12 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
25:12 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
30:12 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
35:12 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
40:12 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
44:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect)
46:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)
etc/csp_whitelist.xml
7:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed)
13:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed)
registration.php
6:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)
view/frontend/templates/adhoc.phtml
5:15 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper)
5:15 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis)
6:5 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
13:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)
15:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
17:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)
22:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)
24:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)
30:55 warning Short echo tag syntax must be used; expected "=" but found "" (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 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)
view/frontend/web/frame_retina.html
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
view/frontend/web/frame_zoom_light.html
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
view/frontend/web/imagerotator/html/js/imagerotator.js
1:1 error Avoid using self-closing tag with non-void html element - "