Skip to content

Commit 02e781b

Browse files
binarykactions-user
authored andcommitted
Fix styling
1 parent 168a8f2 commit 02e781b

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

src/Actions/Action.php

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

33
namespace Binarcode\LaravelMailator\Actions;
44

5-
65
use Binarcode\LaravelMailator\Models\MailatorSchedule;
76

87
interface Action

src/Models/Concerns/ConstraintsResolver.php

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

44
namespace Binarcode\LaravelMailator\Models\Concerns;
55

6-
76
use Binarcode\LaravelMailator\Constraints\BeforeConstraint;
87
use Binarcode\LaravelMailator\Constraints\SendScheduleConstraint;
98
use Binarcode\LaravelMailator\Models\MailatorSchedule;
@@ -18,9 +17,9 @@ trait ConstraintsResolver
1817
public function configurationsPasses(): bool
1918
{
2019
return collect([
21-
BeforeConstraint::class
20+
BeforeConstraint::class,
2221
])
23-
->map(fn($class) => app($class))
22+
->map(fn ($class) => app($class))
2423
->every(fn (SendScheduleConstraint $event) => $event->canSend($this, $this->logs));
2524
}
2625

src/Models/MailTemplate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class MailTemplate extends Model implements MailTemplateable
3939
public function placeholders()
4040
{
4141
return $this->hasMany(
42-
config('mailator.templates.placeholder_model') ?? MailTemplatePlaceholder::class, 'mail_template_id'
42+
config('mailator.templates.placeholder_model') ?? MailTemplatePlaceholder::class,
43+
'mail_template_id'
4344
);
4445
}
4546

src/Models/MailTemplatePlaceholder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class MailTemplatePlaceholder extends Model
2323
public function mailTemplate()
2424
{
2525
return $this->belongsTo(
26-
config('mailator.templates.template_model') ?? MailTemplate::class, 'mail_template_id'
26+
config('mailator.templates.template_model') ?? MailTemplate::class,
27+
'mail_template_id'
2728
);
2829
}
2930
}

src/Models/MailatorSchedule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public function getRecipients(): array
324324

325325
protected function ensureValidEmail(string $email): bool
326326
{
327-
return !Validator::make(
327+
return ! Validator::make(
328328
compact('email'),
329329
['email' => 'required|email']
330330
)->fails();

tests/Feature/Models/MailatorScheduleTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Binarcode\LaravelMailator\Tests\Feature\Models;
44

55
use Binarcode\LaravelMailator\Models\MailatorSchedule;
6-
use Binarcode\LaravelMailator\Tests\Fixtures\BeforeInvoiceExpiresConstraint;
76
use Binarcode\LaravelMailator\Tests\Fixtures\InvoiceReminderMailable;
87
use Binarcode\LaravelMailator\Tests\Fixtures\SerializedConditionCondition;
98
use Binarcode\LaravelMailator\Tests\Fixtures\SingleSendingCondition;
@@ -25,7 +24,7 @@ public function test_can_create_mailator_schedule()
2524
->mailable(new InvoiceReminderMailable())
2625
->days(1)
2726
->before(now()->addWeek())
28-
->when(function() {
27+
->when(function () {
2928
return 'Working.';
3029
})
3130
->save();
@@ -61,7 +60,7 @@ public function test_sending_email_only_once()
6160
MailatorSchedule::run();
6261
Mail::assertSent(InvoiceReminderMailable::class, 1);
6362

64-
Mail::assertSent(InvoiceReminderMailable::class, function(InvoiceReminderMailable $mail) {
63+
Mail::assertSent(InvoiceReminderMailable::class, function (InvoiceReminderMailable $mail) {
6564
return $mail->hasTo('[email protected]') && $mail->hasTo('[email protected]');
6665
});
6766
}

0 commit comments

Comments
 (0)