Magento Coding Standard (PHPCS) report for enanobots/m2-customer-timeout-popup
==============================================================================
Package version: 2.0.0 | Magento: 2.4.9 | Tested: 2026-05-27
5 errors, 49 warnings in 6 files
Model/UpdateSession.php
19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
23:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose)
25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
view/frontend/templates/session.lifetime.popup.phtml
20:52 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
21:58 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
22:56 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
23:62 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
24:58 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped)
view/frontend/web/template/view/sessionTimeoutPopup.html
1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements)
view/frontend/web/css/source/_module.less
9:10 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
10:11 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
11:12 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
12:13 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
13:8 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
14:9 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
15:12 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
16:15 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
16:27 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound)
17:17 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting)
26:46 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound)
28:21 warning A variable should be used for a CSS colour (Magento2.Less.ColourDefinition.NotInVariable)
30:21 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting)
32:41 warning Add a line break after each selector delimiter (Magento2.Less.SelectorDelimiter.LineBreakAfterDelimiter)
33:20 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
34:31 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
34:41 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound)
35:23 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
35:33 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound)
35:37 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting)
39:30 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
40:22 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
44:30 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
44:59 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound)
45:22 warning Expected 1 space after colon in style definition; 0 found (Magento2.Less.ColonSpacing.NoneAfter)
45:51 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound)
52:20 warning A variable should be used for a CSS colour (Magento2.Less.ColourDefinition.NotInVariable)
54:34 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting)
60:32 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting)
68:24 warning A variable should be used for a CSS colour (Magento2.Less.ColourDefinition.NotInVariable)
68:24 warning CSS colours must use shorthand if available; expected #fff but found #ffffff (Magento2.Less.ColourDefinition.Shorthand)
74:42 warning A variable should be used for a CSS colour (Magento2.Less.ColourDefinition.NotInVariable)
75:29 warning Values starts from "0" (Magento2.Less.ZeroUnits.ZeroUnitFound)
76:35 warning A variable should be used for a CSS colour (Magento2.Less.ColourDefinition.NotInVariable)
76:42 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting)
Api/UpdateSessionInterface.php
15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
Block/Component.php
20: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)
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)
28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
44:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
52:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)
60:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)