Simplify CronTrigger methods list & its usage

[MAILPOET-2538]
This commit is contained in:
Jan Jakeš
2019-11-18 09:33:01 +01:00
committed by Jack Kitterhing
parent 69b79b4f6c
commit b1aed487be
5 changed files with 5 additions and 14 deletions

View File

@@ -30,7 +30,7 @@ class Reporter {
global $wpdb, $wp_version, $woocommerce;
$mta = $this->settings->get('mta', []);
$newsletters = Newsletter::getAnalytics();
$isCronTriggerMethodWP = $this->settings->get('cron_trigger.method') === CronTrigger::$available_methods['wordpress'];
$isCronTriggerMethodWP = $this->settings->get('cron_trigger.method') === CronTrigger::METHOD_WORDPRESS;
$checker = new ServicesChecker();
$bounceAddress = $this->settings->get('bounce.address');
$segments = Segment::getAnalytics();