Magento Coding Standard (PHPCS) report for magekey/module-stores-flags ====================================================================== Package version: 2.2.0 | Magento: 2.4.9 | Tested: 2026-05-27 48 warnings in 11 files Plugin/WebsiteCollection.php 10:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 11:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Helper/Data.php 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) Observer/PrepareStoreForm.php 35:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 36:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 47:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 48:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Setup/Patch/Schema/AddFlagColumn.php 30:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 61:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 69:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) etc/adminhtml/events.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) etc/module.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) view/frontend/templates/switch/languages.phtml 8:16 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 8:16 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 15:60 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 22:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 26:35 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 34:49 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 34:158 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong) 39:41 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) view/adminhtml/web/css/source/_module.less 13:35 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 23:1 warning CSS class names should be separated with "-" (dash) instead of "_" (underscore) (Magento2.Less.ClassNaming.NotAllowedSymbol) view/base/web/css/source/flag-icon/_flag-icon-base.less 2:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 3:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 4:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 4:31 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 8:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 9:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 10:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 11:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 12:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 12:19 warning Properties sorted not alphabetically (Magento2.Less.PropertiesSorting.PropertySorting) 13:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 14:1 warning Line indented incorrectly; expected 8 spaces, found 4 (Magento2.Less.Indentation.Incorrect) 14:14 warning Use single quotes (Magento2.Less.Quotes.DoubleQuotes) 15:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 19:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) 19:15 warning Space before opening brace is missing (Magento2.Less.BracesFormatting.SpacingBeforeOpen) 19:23 warning Expected 0 blank lines before closing brace of class definition; -1 found (Magento2.Less.BracesFormatting.SpacingBeforeClose) 20:1 warning Line indented incorrectly; expected 8 spaces, found 4 (Magento2.Less.Indentation.Incorrect) 20:24 warning Use single quotes (Magento2.Less.Quotes.DoubleQuotes) 21:1 warning Line indented incorrectly; expected 4 spaces, found 2 (Magento2.Less.Indentation.Incorrect) Block/CompiledStyles.php 29:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 30:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Block/Backend/Grid/Render/StoreFlag.php 32:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 34:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc)