Removes unused variable
Fixes typo in error message
This commit is contained in:
@@ -40,9 +40,6 @@ class Import {
|
||||
$this->subscribers_custom_fields = $this->getCustomSubscribersFields(
|
||||
array_keys($data['columns'])
|
||||
);
|
||||
$this->default_subscribers_fields_validation_rules = array(
|
||||
'email' => 'email'
|
||||
);
|
||||
$this->subscribers_fields_validation_rules = $this->getSubscriberDataValidationRules($data['columns']);
|
||||
$this->subscribers_count = count(reset($this->subscribers_data));
|
||||
$this->created_at = date('Y-m-d H:i:s', (int)$data['timestamp']);
|
||||
@@ -89,7 +86,7 @@ class Import {
|
||||
$this->subscribers_fields_validation_rules
|
||||
);
|
||||
if(!$subscribers_data) {
|
||||
throw new \Exception(__('No valid subscribers were founds.', 'mailpoet'));
|
||||
throw new \Exception(__('No valid subscribers were found.', 'mailpoet'));
|
||||
}
|
||||
// permanently trash deleted subscribers
|
||||
$this->deleteExistingTrashedSubscribers($subscribers_data);
|
||||
|
@@ -136,7 +136,7 @@ class ImportTest extends MailPoetTest {
|
||||
$import->process();
|
||||
self::fail('No valid subscribers found exception not thrown.');
|
||||
} catch(Exception $e) {
|
||||
expect($e->getMessage())->equals('No valid subscribers were founds.');
|
||||
expect($e->getMessage())->equals('No valid subscribers were found.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user