Magento Coding Standard (PHPCS) report for hipay/module-log-viewer ================================================================== Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-05-27 17 errors, 19 warnings in 4 files Controller/Adminhtml/Logs/Index.php 26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 28:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 36:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Controller/Adminhtml/Logs/Fetch.php 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 29:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 39:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 49:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 54:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 82:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 84:53 warning The use of function escapeshellarg() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 90:19 error The use of function shell_exec() is forbidden (Magento2.Security.InsecureFunction.Found) view/adminhtml/templates/logs/index.phtml 9:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 14:59 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 17:56 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 18:45 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 25:59 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 35:59 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 37:47 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 38:57 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 39:48 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 40:48 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 41:49 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 48:35 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 53:31 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 57:31 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 61:31 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 175:27 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 239:48 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 245:48 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) Block/Adminhtml/Logs/View.php 26:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:18 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)