Skip to content

Commit

Permalink
chore(cs): fix new line
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Dec 11, 2023
1 parent cc96cf0 commit 78cdc06
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Freq.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,8 @@ public function findNext(int $offset): bool|int {
//set the timestamp of the offset (ignoring hours and minutes unless we want them to be
//part of the calculations.
if (static::$debug) printf("O: %s\n", date('r', $offset));
$hour = (in_array($this->freq, ['hourly', 'minutely']) && $offset > $this->start) ? date('H', $offset) : date(
'H', $this->start
);
$minute = (($this->freq === 'minutely' || isset($this->rules['byminute'])) && $offset > $this->start) ? date(
'i', $offset
) : date('i', $this->start);
$hour = (in_array($this->freq, ['hourly', 'minutely']) && $offset>$this->start) ? date('H', $offset) : date('H', $this->start);
$minute = (($this->freq === 'minutely' || isset($this->rules['byminute'])) && $offset > $this->start) ? date('i', $offset) : date('i', $this->start);
$t = mktime($hour, $minute, date('s', $this->start), date('m', $offset), date('d', $offset), date('Y', $offset));
if (static::$debug) printf("START: %s\n", date('r', $t));

Expand Down

0 comments on commit 78cdc06

Please sign in to comment.