Magento Coding Standard (PHPCS) report for mage-os/module-hreflang ================================================================== Package version: 1.3.0 | Magento: 2.4.9 | Tested: 2026-06-13 53 warnings in 15 files ViewModel/Hreflang.php 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/HreflangCodeResolver.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 18:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/Sitemap.php 37:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 39:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 86:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 114:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 165:14 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 169:23 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 174:22 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 190:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ResourceModel/Cms/Page.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 18:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/Sitemap/HreflangLinksProvider.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 74:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 80:13 warning object> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 80:13 warning object> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 80:13 warning object> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 80:13 warning $map parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 80:13 warning $currentCategories parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 80:13 warning $currentProducts parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 80:13 warning $currentPages parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 122:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 127:13 warning object> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 127:13 warning $currentCollection parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 127:13 warning $xDefaultCollection parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 127:13 warning $map parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 146:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 152:13 warning object> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 152:13 warning $currentCollection parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 152:13 warning $altCollection parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 152:13 warning $map parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Retriever/CmsPageHreflangRetriever.php 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 24:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/Retriever/HreflangService.php 14:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 20:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/Retriever/CategoryHreflangRetriever.php 21:20 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 29:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/Retriever/ProductHreflangRetriever.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 18:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Console/Command/ValidateHreflang.php 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) view/frontend/templates/hreflang.phtml 14:123 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) view/adminhtml/system/config/message.phtml 2:1 warning There must be one blank line after the last USE statement; 0 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) Test/Unit/Model/HreflangCodeResolverTest.php 15:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:33 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 17:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) Test/Unit/Model/Retriever/HreflangServiceTest.php 14:25 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 15:40 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:19 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) Block/Adminhtml/Form/Field/HreflangMessage.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)