Add public keyword to methods
[MAILPOET-2413]
This commit is contained in:
@@ -5,7 +5,7 @@ namespace MailPoet\Newsletter\Shortcodes\Categories;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Date {
|
||||
static function process(
|
||||
public static function process(
|
||||
$shortcode_details
|
||||
) {
|
||||
$action_mapping = [
|
||||
|
@@ -11,7 +11,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class Link {
|
||||
const CATEGORY_NAME = 'link';
|
||||
|
||||
static function process(
|
||||
public static function process(
|
||||
$shortcode_details,
|
||||
$newsletter,
|
||||
$subscriber,
|
||||
@@ -63,7 +63,7 @@ class Link {
|
||||
}
|
||||
}
|
||||
|
||||
static function processUrl($action, $url, $queue, $wp_user_preview = false) {
|
||||
public static function processUrl($action, $url, $queue, $wp_user_preview = false) {
|
||||
if ($wp_user_preview) return $url;
|
||||
$settings = SettingsController::getInstance();
|
||||
return ($queue !== false && (boolean)$settings->get('tracking.enabled')) ?
|
||||
@@ -71,7 +71,7 @@ class Link {
|
||||
$url;
|
||||
}
|
||||
|
||||
static function processShortcodeAction(
|
||||
public static function processShortcodeAction(
|
||||
$shortcode_action, $newsletter, $subscriber, $queue, $wp_user_preview
|
||||
) {
|
||||
$subscription_url_factory = SubscriptionUrlFactory::getInstance();
|
||||
|
@@ -7,7 +7,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
use MailPoet\WP\Posts as WPPosts;
|
||||
|
||||
class Newsletter {
|
||||
static function process(
|
||||
public static function process(
|
||||
$shortcode_details,
|
||||
$newsletter,
|
||||
$subscriber,
|
||||
|
@@ -10,7 +10,7 @@ class Subscriber {
|
||||
/**
|
||||
* @param \MailPoet\Models\Subscriber|false|mixed $subscriber
|
||||
*/
|
||||
static function process(
|
||||
public static function process(
|
||||
$shortcode_details,
|
||||
$newsletter,
|
||||
$subscriber
|
||||
|
Reference in New Issue
Block a user