diff --git a/api/tracks/tracks-debug-log.php b/api/tracks/tracks-debug-log.php index 7971664cf38..d21101cc39b 100644 --- a/api/tracks/tracks-debug-log.php +++ b/api/tracks/tracks-debug-log.php @@ -4,50 +4,50 @@ * A class for logging tracked events. */ class TracksDebugLog { - /** + /** * Logger class to use. * * @var WC_Logger_Interface|null */ private $logger; - /** + /** * Logger source. * * @var string logger source. */ private $source = 'tracks'; - /** - * Initialize hooks. - */ - public function __construct() { - add_filter( 'woocommerce_tracks_event_properties', array( $this, 'log_event' ), 10, 2 ); - $logger = wc_get_logger(); + /** + * Initialize hooks. + */ + public function __construct() { + add_filter( 'woocommerce_tracks_event_properties', array( $this, 'log_event' ), 10, 2 ); + $logger = wc_get_logger(); $this->logger = $logger; $this->logger = $logger; - } + } - /** - * Log the event. - * - * @param array $properties Event properties. - * @param string $event_name Event name. - */ - public function log_event( $properties, $event_name ) { - $this->logger->debug( - $event_name, - array( 'source' => $this->source ) - ); - foreach ( $properties as $key => $property ) { + /** + * Log the event. + * + * @param array $properties Event properties. + * @param string $event_name Event name. + */ + public function log_event( $properties, $event_name ) { + $this->logger->debug( + $event_name, + array( 'source' => $this->source ) + ); + foreach ( $properties as $key => $property ) { $this->logger->debug( " - {$key}: {$property}", array( 'source' => $this->source ) ); } - return $properties; - } + return $properties; + } } new TracksDebugLog(); \ No newline at end of file