Skip to content

Commit be194a8

Browse files
committed
formatting
1 parent 9e6a469 commit be194a8

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

src/Illuminate/Console/Scheduling/ManagesFrequencies.php

+13-15
Original file line numberDiff line numberDiff line change
@@ -337,21 +337,6 @@ public function monthlyOn($day = 1, $time = '0:0')
337337
return $this->spliceIntoPosition(3, $day);
338338
}
339339

340-
/**
341-
* Schedule the event to run on the last day of the month.
342-
*
343-
* @param string $time
344-
* @return $this
345-
*/
346-
public function monthlyOnLastDay($time = '0:0')
347-
{
348-
$this->dailyAt($time);
349-
350-
$lastDayOfMonth = Carbon::now()->endOfMonth()->day;
351-
352-
return $this->spliceIntoPosition(3, $lastDayOfMonth);
353-
}
354-
355340
/**
356341
* Schedule the event to run twice monthly.
357342
*
@@ -368,6 +353,19 @@ public function twiceMonthly($first = 1, $second = 16)
368353
->spliceIntoPosition(3, $days);
369354
}
370355

356+
/**
357+
* Schedule the event to run on the last day of the month.
358+
*
359+
* @param string $time
360+
* @return $this
361+
*/
362+
public function lastDayOfMonth($time = '0:0')
363+
{
364+
$this->dailyAt($time);
365+
366+
return $this->spliceIntoPosition(3, Carbon::now()->endOfMonth()->day);
367+
}
368+
371369
/**
372370
* Schedule the event to run quarterly.
373371
*

0 commit comments

Comments
 (0)