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

@ -7,7 +7,7 @@ use MailPoet\Util\Helpers;
use MailPoet\WP\Functions as WPFunctions;
class Throttling {
static function throttle() {
public static function throttle() {
$wp = new WPFunctions;
$subscription_limit_enabled = $wp->applyFilters('mailpoet_subscription_limit_enabled', true);
@ -48,7 +48,7 @@ class Throttling {
return false;
}
static function purge() {
public static function purge() {
$wp = new WPFunctions;
$interval = $wp->applyFilters('mailpoet_subscription_purge_window', MONTH_IN_SECONDS);
return SubscriberIP::whereRaw(
@ -57,7 +57,7 @@ class Throttling {
)->deleteMany();
}
static function secondsToTimeString($seconds) {
public static function secondsToTimeString($seconds) {
$wp = new WPFunctions;
$hrs = floor($seconds / 3600);
$min = floor($seconds % 3600 / 60);