Skip to content

Commit

Permalink
fixing phpcs for ActionScheduler_Schedule_Deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiul committed Sep 16, 2021
1 parent 00af755 commit dfe1733
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deprecated/ActionScheduler_Schedule_Deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ abstract class ActionScheduler_Schedule_Deprecated implements ActionScheduler_Sc
* Get the date & time this schedule was created to run, or calculate when it should be run
* after a given date & time.
*
* @param DateTime $after
* @param DateTime $after DateTime to calculate against.
*
* @return DateTime|null
*/
public function next( DateTime $after = NULL ) {
public function next( DateTime $after = null ) {
if ( empty( $after ) ) {
$return_value = $this->get_date();
$replacement_method = 'get_date()';
Expand All @@ -22,7 +22,7 @@ public function next( DateTime $after = NULL ) {
$replacement_method = 'get_next( $after )';
}

_deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method );
_deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

return $return_value;
}
Expand Down

0 comments on commit dfe1733

Please sign in to comment.