Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-schedule-monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jun 10, 2021
2 parents d6fa455 + 94b6243 commit ed40975
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Commands/SyncCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use OhDear\PhpSdk\OhDear;
use OhDear\PhpSdk\Resources\CronCheck;
use Spatie\ScheduleMonitor\Models\MonitoredScheduledTask;
use Spatie\ScheduleMonitor\Support\Concerns\UsesScheduleMonitoringModels;
use Spatie\ScheduleMonitor\Support\ScheduledTasks\ScheduledTasks;
use Spatie\ScheduleMonitor\Support\ScheduledTasks\Tasks\Task;
use Spatie\ScheduleMonitor\Support\Concerns\UsesScheduleMonitoringModels;

class SyncCommand extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion src/Models/MonitoredScheduledTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Illuminate\Support\Str;
use OhDear\PhpSdk\Resources\CronCheck;
use Spatie\ScheduleMonitor\Jobs\PingOhDearJob;
use Spatie\ScheduleMonitor\Support\ScheduledTasks\ScheduledTaskFactory;
use Spatie\ScheduleMonitor\Support\Concerns\UsesScheduleMonitoringModels;
use Spatie\ScheduleMonitor\Support\ScheduledTasks\ScheduledTaskFactory;

class MonitoredScheduledTask extends Model
{
Expand Down
2 changes: 0 additions & 2 deletions src/ScheduleMonitorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Illuminate\Console\Events\CommandStarting;
use Illuminate\Console\Scheduling\Event as SchedulerEvent;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\ServiceProvider;
use OhDear\PhpSdk\OhDear;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
Expand Down Expand Up @@ -123,5 +122,4 @@ protected function protectAgainstInvalidClassDefinition($packageClass, $provided
throw new InvalidClassException("The provided class name {$providedClass} does not extend the required package class {$packageClass}.");
}
}

}
2 changes: 1 addition & 1 deletion src/Support/Concerns/UsesScheduleMonitoringModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Spatie\ScheduleMonitor\Support\Concerns;

use function app;
use Spatie\ScheduleMonitor\Models\MonitoredScheduledTask;
use Spatie\ScheduleMonitor\Models\MonitoredScheduledTaskLogItem;
use function app;

trait UsesScheduleMonitoringModels
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/UsesScheduleMonitoringModelsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Spatie\ScheduleMonitor\Models\MonitoredScheduledTask;
use Spatie\ScheduleMonitor\Models\MonitoredScheduledTaskLogItem;
use Spatie\ScheduleMonitor\Tests\TestCase;
use Spatie\ScheduleMonitor\Support\Concerns\UsesScheduleMonitoringModels;
use Spatie\ScheduleMonitor\Tests\TestCase;

class UsesScheduleMonitoringModelsTest extends TestCase
{
Expand Down

0 comments on commit ed40975

Please sign in to comment.