mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Code cleanup.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
/*
|
||||
* Weekly.php
|
||||
* Copyright (c) 2023 Antonio Spinelli <https://github.com/tonicospinelli>
|
||||
@@ -32,14 +31,8 @@ use Carbon\Carbon;
|
||||
*/
|
||||
class Weekly extends Interval
|
||||
{
|
||||
/**
|
||||
* @param Carbon $date
|
||||
* @param int $interval
|
||||
*
|
||||
* @return Carbon
|
||||
*/
|
||||
public function nextDate(Carbon $date, int $interval = 1): Carbon
|
||||
{
|
||||
return ($date->clone())->addWeeks($this->skip($interval));
|
||||
return $date->clone()->addWeeks($this->skip($interval));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user