Magento Coding Standard (PHPCS) report for outeredge/magento-opentelemetry-module ================================================================================= Package version: 2.0.6 | Magento: 2.4.9 | Tested: 2026-05-26 1 error, 51 warnings in 14 files Logs/LazyLoggerProvider.php 27:40 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 43:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 49:65 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 59:32 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 60:50 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 62:34 warning The use of function session_id() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 83:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 99:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) ViewModel/FrontendLogger.php 11:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) ExclusionList/Common.php 7:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 7:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) ExclusionList/ExclusionListInterface.php 7:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 7:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Config/Source/LogLevelList.php 10:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:25 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) Model/Config/Source/ExclusionList.php 9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Source/EnableList.php 9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Api/LoggerFrontendRepository.php 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 16:21 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 52:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) rector.php 30:1 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) registration.php 3:18 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) view/frontend/templates/front-end-logger.phtml 101:27 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) Monolog/Handler/DeduplicationOpenTelemetry.php 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Monolog/Handler/OpenTelemetry.php 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) 23:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 25:23 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 27:21 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 43:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 52:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 59:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong) 66:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 73:33 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 78:54 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 84:47 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 98:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Api/LoggerFrontendRepositoryInterface.php 7:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 8:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)