Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@ -10,14 +10,14 @@ use MailPoet\WP\Functions as WPFunctions;
class PersonalDataExporters {
function init() {
public function init() {
WPFunctions::get()->addFilter('wp_privacy_personal_data_exporters', [$this, 'registerSubscriberExporter']);
WPFunctions::get()->addFilter('wp_privacy_personal_data_exporters', [$this, 'registerSegmentsExporter']);
WPFunctions::get()->addFilter('wp_privacy_personal_data_exporters', [$this, 'registerNewslettersExporter']);
WPFunctions::get()->addFilter('wp_privacy_personal_data_exporters', [$this, 'registerNewsletterClicksExporter']);
}
function registerSegmentsExporter($exporters) {
public function registerSegmentsExporter($exporters) {
$exporters[] = [
'exporter_friendly_name' => WPFunctions::get()->__('MailPoet Lists', 'mailpoet'),
'callback' => [new SegmentsExporter(), 'export'],
@ -25,7 +25,7 @@ class PersonalDataExporters {
return $exporters;
}
function registerSubscriberExporter($exporters) {
public function registerSubscriberExporter($exporters) {
$exporters[] = [
'exporter_friendly_name' => WPFunctions::get()->__('MailPoet Subscriber Data', 'mailpoet'),
'callback' => [new SubscriberExporter(), 'export'],
@ -33,7 +33,7 @@ class PersonalDataExporters {
return $exporters;
}
function registerNewslettersExporter($exporters) {
public function registerNewslettersExporter($exporters) {
$exporters[] = [
'exporter_friendly_name' => WPFunctions::get()->__('MailPoet Emails', 'mailpoet'),
'callback' => [new NewslettersExporter(), 'export'],
@ -41,7 +41,7 @@ class PersonalDataExporters {
return $exporters;
}
function registerNewsletterClicksExporter($exporters) {
public function registerNewsletterClicksExporter($exporters) {
$exporters[] = [
'exporter_friendly_name' => WPFunctions::get()->__('MailPoet Email Clicks', 'mailpoet'),
'callback' => [new NewsletterClicksExporter(), 'export'],