Add public keyword to methods
[MAILPOET-2413]
This commit is contained in:
@ -10,7 +10,7 @@ class NewsletterClicksExporter {
|
||||
|
||||
const LIMIT = 100;
|
||||
|
||||
function export($email, $page = 1) {
|
||||
public function export($email, $page = 1) {
|
||||
$data = $this->exportSubscriber(Subscriber::findOne(trim($email)), $page);
|
||||
return [
|
||||
'data' => $data,
|
||||
|
@ -12,7 +12,7 @@ class NewslettersExporter {
|
||||
|
||||
const LIMIT = 100;
|
||||
|
||||
function export($email, $page = 1) {
|
||||
public function export($email, $page = 1) {
|
||||
$data = $this->exportSubscriber(Subscriber::findOne(trim($email)), $page);
|
||||
return [
|
||||
'data' => $data,
|
||||
|
@ -7,7 +7,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class SegmentsExporter {
|
||||
|
||||
function export($email) {
|
||||
public function export($email) {
|
||||
return [
|
||||
'data' => $this->exportSubscriber(Subscriber::findOne(trim($email))),
|
||||
'done' => true,
|
||||
|
@ -9,7 +9,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class SubscriberExporter {
|
||||
|
||||
function export($email) {
|
||||
public function export($email) {
|
||||
return [
|
||||
'data' => $this->exportSubscriber(Subscriber::findOne(trim($email))),
|
||||
'done' => true,
|
||||
|
Reference in New Issue
Block a user