intend
This commit is contained in:
@@ -14,7 +14,6 @@ use MailPoet\Newsletter\Statistics\WooCommerceRevenue;
|
|||||||
use MailPoet\WooCommerce\Helper;
|
use MailPoet\WooCommerce\Helper;
|
||||||
|
|
||||||
class OverviewStatisticsController {
|
class OverviewStatisticsController {
|
||||||
|
|
||||||
/** @var NewslettersRepository */
|
/** @var NewslettersRepository */
|
||||||
private $newslettersRepository;
|
private $newslettersRepository;
|
||||||
|
|
||||||
@@ -108,12 +107,11 @@ class OverviewStatisticsController {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getEmailsFromAutomation(Automation $automation): array {
|
private function getEmailsFromAutomation(Automation $automation): array {
|
||||||
return array_filter(array_map(
|
return array_filter(array_map(
|
||||||
function(Step $step) {
|
function (Step $step) {
|
||||||
$emailId = $step->getArgs()['email_id'] ?? null;
|
$emailId = $step->getArgs()['email_id'] ?? null;
|
||||||
if (!$emailId) {
|
if (!$emailId) {
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user