Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPCS: classes/schedules/ActionScheduler_SimpleSchedule.php #1168

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions classes/schedules/ActionScheduler_SimpleSchedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ class ActionScheduler_SimpleSchedule extends ActionScheduler_Abstract_Schedule {
*
* @var null|DateTime
*/
private $timestamp = NULL;
private $timestamp = null;

/**
* Calculate when this schedule should start after a given date & time using
* the number of seconds between recurrences.
*
* @param DateTime $after Timestamp.
*
* @return DateTime|null
Expand All @@ -22,6 +25,8 @@ public function calculate_next( DateTime $after ) {
}

/**
* Schedule is not recurring.
*
* @return bool
*/
public function is_recurring() {
Expand All @@ -47,9 +52,12 @@ public function __sleep() {

$this->timestamp = $this->scheduled_timestamp;

return array_merge( $sleep_params, array(
'timestamp',
) );
return array_merge(
$sleep_params,
array(
'timestamp',
)
);
}

/**
Expand Down
Loading