From 0dac1cacfbccc61d7c8a5f64a8e208f1590fe593 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Mon, 11 Mar 2019 12:44:43 +0100 Subject: [PATCH] Add alias for WooCommerceHelper for better readability [MAILPOET-1815] --- lib/Twig/Analytics.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Twig/Analytics.php b/lib/Twig/Analytics.php index bc2db09e55..a27cacf580 100644 --- a/lib/Twig/Analytics.php +++ b/lib/Twig/Analytics.php @@ -5,14 +5,14 @@ namespace MailPoet\Twig; use MailPoet\Analytics\Reporter; use MailPoet\Analytics\Analytics as AnalyticsGenerator; use MailPoet\Settings\SettingsController; -use MailPoet\WooCommerce\Helper; +use MailPoet\WooCommerce\Helper as WooCommerceHelper; if (!defined('ABSPATH')) exit; class Analytics extends \Twig_Extension { public function getFunctions() { $settings = new SettingsController(); - $analytics = new AnalyticsGenerator(new Reporter($settings, new Helper), $settings); + $analytics = new AnalyticsGenerator(new Reporter($settings, new WooCommerceHelper), $settings); return array( new \Twig_SimpleFunction( 'get_analytics_data',