Magento Coding Standard (PHPCS) report for gauravharsh/module-log-monitor ========================================================================= Package version: 1.2.1 | Magento: 2.4.9 | Tested: 2026-10-27 3 errors, 88 warnings in 17 files Model/Config.php 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) 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Model/LogReader.php 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) 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 29:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 37:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 43:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 44:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 55:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 56:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 57:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 64:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 70:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 76:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 82:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 89:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 91:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 93:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 94:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 95:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 102:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 116:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 190:29 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 290:17 warning The use of function fseek() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileSeek() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 336:17 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 346:17 warning The use of function gzseek() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 353:17 warning The use of function fseek() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileSeek() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 372:51 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 373:21 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 423:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 432:35 warning The use of function gzgets() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 432:77 warning The use of function fgets() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 432:121 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 436:58 warning The use of function feof() is discouraged; use Magento\Framework\Filesystem\DriverInterface::endOfFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 466:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 511:17 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 673:13 warning The use of function gzrewind() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 674:26 warning The use of function gzgets() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 677:26 warning The use of function fgets() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 680:65 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 699:47 error Silencing errors is discouraged; found: @gzopen($path... (Generic.PHP.NoSilencedErrors.Discouraged) 699:48 warning The use of function gzopen() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 709:13 warning The use of function gzclose() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Alert.php 12:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/ResourceModel/Alert/Collection.php 16:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/ResourceModel/State.php 13:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/ResourceModel/State/Collection.php 17:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/Config/Source/SeverityOptions.php 46:58 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 52:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/Config/Source/Severity.php 15: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) Console/Command/ProcessLogsCommand.php 18:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 44:30 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 82:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Ui/Component/Listing/Column/ViewAction.php 44:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) registration.php 6:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Controller/Adminhtml/Alerts/Index.php 11:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Controller/Adminhtml/Alerts/View.php 18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 67:147 warning Line exceeds 120 characters; contains 147 characters (Generic.Files.LineLength.TooLong) 77:16 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Controller/Adminhtml/Alerts/MassDelete.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) Cron/SendAlerts.php 25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 129:21 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 136:21 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 137:40 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 139:30 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 269:25 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 275:24 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 276:29 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 277:28 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 278:27 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 283:1 warning Line exceeds 120 characters; contains 166 characters (Generic.Files.LineLength.TooLong) 284:1 warning Line exceeds 120 characters; contains 200 characters (Generic.Files.LineLength.TooLong) 287:1 warning Line exceeds 120 characters; contains 167 characters (Generic.Files.LineLength.TooLong) 394:17 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 398:17 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Cron/CleanupAlerts.php 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 52:14 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 63:18 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Cron/ProcessLogs.php 19:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)