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,11 +10,11 @@ class CronWorkerScheduler {
/** @var WPFunctions */
private $wp;
function __construct(WPFunctions $wp) {
public function __construct(WPFunctions $wp) {
$this->wp = $wp;
}
function schedule($task_type, $next_run_date) {
public function schedule($task_type, $next_run_date) {
$already_scheduled = ScheduledTask::where('type', $task_type)
->whereNull('deleted_at')
->where('status', ScheduledTask::STATUS_SCHEDULED)
@ -31,7 +31,7 @@ class CronWorkerScheduler {
return $task;
}
function reschedule(ScheduledTask $task, $timeout) {
public function reschedule(ScheduledTask $task, $timeout) {
$scheduled_at = Carbon::createFromTimestamp($this->wp->currentTime('timestamp'));
$task->scheduled_at = $scheduled_at->addMinutes($timeout);
$task->setExpr('updated_at', 'NOW()');