Magento Coding Standard (PHPCS) report for ampersand/magento2-verbose-log-request ================================================================================= Package version: 1.3.0 | Magento: 2.4.9 | Tested: 2026-05-26 8 errors, 15 warnings in 5 files dev/prepare_phpunit_config.php 7:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 9:22 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 15:6 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 16:5 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 20:19 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 21:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 22:17 error The use of function exec() is forbidden; use \Magento\Framework\Shell::execute() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 24:5 warning The use of function var_dump() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 25:5 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 33:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 37:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 38:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 39:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 39:6 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 40:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) dev/phpunit-unit-bootstrap.php 2:15 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 3:1 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 7:1 error "require_once" statement detected. File manipulations are discouraged. (Magento2.Security.IncludeFile.FoundIncludeFile) src/Service/GetKey.php 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) src/Service/IsVerbose.php 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) src/view/adminhtml/templates/getkey.phtml 8:60 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 9:60 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found)