@@ -65,30 +65,30 @@ public static function getNumericValue($eventTags, LoggerInterface $logger = nul
6565
6666 if (!$ eventTags ) {
6767 if ($ logger )
68- $ logger ->log (Logger::DEBUG ,"Event tags is undefined. " );
68+ $ logger ->log (Logger::DEBUG , "Event tags is undefined. " );
6969 return null ;
7070 } else if (!is_array ($ eventTags )) {
7171 if ($ logger )
72- $ logger ->log (Logger::DEBUG ,"Event tags is not a dictionary. " );
72+ $ logger ->log (Logger::DEBUG , "Event tags is not a dictionary. " );
7373 return null ;
7474 } else if (!isset ($ eventTags [self ::NUMERIC_EVENT_METRIC_NAME ])) {
7575 if ($ logger )
76- $ logger ->log (Logger::DEBUG ,"The numeric metric key is not defined in the event tags or is null. " );
76+ $ logger ->log (Logger::DEBUG , "The numeric metric key is not defined in the event tags or is null. " );
7777 return null ;
7878 } else if (!is_numeric ($ eventTags [self ::NUMERIC_EVENT_METRIC_NAME ])) {
7979 if ($ logger )
80- $ logger ->log (Logger::DEBUG ,"Numeric metric value is not an integer or float, or is not a numeric string. " );
80+ $ logger ->log (Logger::DEBUG , "Numeric metric value is not an integer or float, or is not a numeric string. " );
8181 return null ;
8282 } else if (is_nan ($ eventTags [self ::NUMERIC_EVENT_METRIC_NAME ]) || is_infinite (floatval ($ eventTags [self ::NUMERIC_EVENT_METRIC_NAME ]))){
8383 if ($ logger )
84- $ logger ->log (Logger::DEBUG ,"Provided numeric value is in an invalid format. " );
84+ $ logger ->log (Logger::DEBUG , "Provided numeric value is in an invalid format. " );
8585 return null ;
8686 }
8787
8888 $ rawValue = $ eventTags [self ::NUMERIC_EVENT_METRIC_NAME ];
8989 // # Log the final numeric metric value
9090 if ($ logger ){
91- $ logger ->log (Logger::INFO ,"The numeric metric value {$ rawValue } will be sent to results. " );
91+ $ logger ->log (Logger::INFO , "The numeric metric value {$ rawValue } will be sent to results. " );
9292 }
9393
9494 return floatval ($ rawValue );
0 commit comments