Remove unused argument

[MAILPOET-2219]
This commit is contained in:
Pavel Dohnal
2019-08-21 11:07:41 +02:00
committed by M. Shull
parent ff9bc0b3b9
commit 3f3983113a
2 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class AutomatedEmails extends SimpleWorker {
$newsletter $newsletter
->withSendingQueue() ->withSendingQueue()
->withTotalSent() ->withTotalSent()
->withStatistics($this->woocommerce_helper, new FeaturesController()); // TODO this is here temporarily until https://github.com/mailpoet/mailpoet/pull/2157 is merged after that we can remove the second argument ->withStatistics($this->woocommerce_helper);
} }
$result = []; $result = [];
foreach ($newsletters as $newsletter) { foreach ($newsletters as $newsletter) {

View File

@ -33,6 +33,7 @@ class FeatureFlagsRepository extends Repository {
$feature_flag = new FeatureFlagEntity($data['name']); $feature_flag = new FeatureFlagEntity($data['name']);
$this->persist($feature_flag); $this->persist($feature_flag);
} }
if (array_key_exists('value', $data)) { if (array_key_exists('value', $data)) {
$feature_flag->setValue($data['value']); $feature_flag->setValue($data['value']);
} }