Skip to content

Commit 2c5324f

Browse files
committed
Merge branch 'garbage' of github.com:BinarCode/laravel-mailator into garbage
2 parents fc211ce + 8ff8b56 commit 2c5324f

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

src/Console/Commands/GarbageCollectorCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function handle()
3232
}
3333
});
3434

35-
if (!$dry = $this->option('dry')) {
36-
$ids->each(fn($i) => $this->info('Scheduler id to complete: '.$i));
35+
if (! $dry = $this->option('dry')) {
36+
$ids->each(fn ($i) => $this->info('Scheduler id to complete: '.$i));
3737
}
3838

3939
$this->info("[".$ids->count()."] items matched.");

src/Constraints/AfterConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,5 @@ public function canSend(MailatorSchedule $schedule, Collection $logs): bool
4646
return $schedule->isOnce()
4747
? $schedule->timestamp_target->diffInHours(now()) === $schedule->delay_minutes
4848
: $schedule->timestamp_target->diffInHours(now()) > $schedule->delay_minutes;
49-
5049
}
5150
}

src/LaravelMailatorServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function boot()
6767
], 'lang');*/
6868

6969
// Registering package commands.
70-
$this->commands([
70+
$this->commands([
7171
GarbageCollectorCommand::class,
7272
MailatorSchedulerCommand::class,
7373
]);

tests/Feature/AfterConstraintTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,4 @@ public function test_past_target_with_after_now_passed_after_constraint_hourly_b
7575
$can
7676
);
7777
}
78-
7978
}

tests/Feature/SchedulerDefaultConstraintsTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Binarcode\LaravelMailator\Tests\Feature;
44

5-
use Binarcode\LaravelMailator\Constraints\AfterConstraint;
65
use Binarcode\LaravelMailator\Models\MailatorSchedule;
76
use Binarcode\LaravelMailator\Tests\Fixtures\InvoiceReminderMailable;
87
use Binarcode\LaravelMailator\Tests\Fixtures\SerializedConditionCondition;
@@ -201,5 +200,4 @@ public function test_can_send_weekly_before_target(): void
201200

202201
Mail::assertSent(InvoiceReminderMailable::class, 2);
203202
}
204-
205203
}

0 commit comments

Comments
 (0)