Skip to content

Commit

Permalink
Merge pull request #470 from range-of-motion/ignore-schedule-function…
Browse files Browse the repository at this point in the history
…-of-kernel-in-code-coverage

Ignore schedule function of kernel in code coverage
  • Loading branch information
range-of-motion authored Dec 24, 2023
2 parents c0e063e + 2f6c44e commit fbceedb
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,17 @@
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
* @codeCoverageIgnore
*/
protected $commands = [
//
];

/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
protected function schedule(Schedule $schedule): void
{
$schedule->job(new ProcessRecurrings())->daily();
$schedule->job(new FetchConversionRates())->daily();

$schedule->job(new SendWeeklyReports())->weekly()->fridays()->at('21:00');
}

/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
protected function commands(): void
{
$this->load(__DIR__ . '/Commands');

Expand Down

0 comments on commit fbceedb

Please sign in to comment.