diff --git a/src/Stack/Integrations/WooCommerce/WC_Console_Log_Handler.php b/src/Stack/Integrations/WooCommerce/WC_Console_Log_Handler.php index 12be688..710a840 100644 --- a/src/Stack/Integrations/WooCommerce/WC_Console_Log_Handler.php +++ b/src/Stack/Integrations/WooCommerce/WC_Console_Log_Handler.php @@ -9,6 +9,7 @@ /** * Class WC_Console_Log_Handler */ +// phpcs:ignore class WC_Console_Log_Handler extends \WC_Log_Handler { /** @@ -34,6 +35,7 @@ public function handle($timestamp, $level, $message, $context) error_log($entry); } + // phpcs:ignore protected static function format_context($context) { $ctx = ''; @@ -56,6 +58,7 @@ protected static function format_context($context) * * @return string Formatted log entry. */ + // phpcs:ignore protected static function format_entry($timestamp, $level, $message, $context) { if (defined('STACK_JSON_LOG') && true === STACK_JSON_LOG) { diff --git a/src/Stack/MetricsRegistry.php b/src/Stack/MetricsRegistry.php index 84febf8..0ab7f12 100644 --- a/src/Stack/MetricsRegistry.php +++ b/src/Stack/MetricsRegistry.php @@ -3,6 +3,9 @@ class MetricsRegistry { + private $registry; + private $metrics = []; + public function __construct($metrics = []) { $storage = function_exists('apcu_enabled') && apcu_enabled()