Add public keyword to methods
[MAILPOET-2413]
This commit is contained in:
@ -12,11 +12,11 @@ class DataGenerator {
|
||||
/** @var Output */
|
||||
private $console;
|
||||
|
||||
function __construct(Output $console) {
|
||||
public function __construct(Output $console) {
|
||||
$this->console = $console;
|
||||
}
|
||||
|
||||
function run($generator_name) {
|
||||
public function run($generator_name) {
|
||||
ini_set('memory_limit', '1024M');
|
||||
$timer = time();
|
||||
try {
|
||||
|
@ -30,7 +30,7 @@ class WooCommercePastRevenues {
|
||||
const POST_NOTIFICATIONS_HISTORY = 30;
|
||||
const STANDARD_NEWSLETTER = 30;
|
||||
|
||||
function generate() {
|
||||
public function generate() {
|
||||
$this->prepareDatabaseTables();
|
||||
// Reset hooks to prevent revenues calculation during generating
|
||||
remove_all_actions('woocommerce_order_status_completed');
|
||||
|
Reference in New Issue
Block a user