Skip to content

Commit 535b88e

Browse files
committed
Apply some PSR-12 fixes
1 parent 2886e9a commit 535b88e

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

src/Email.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Email extends Model
5555
*/
5656
public static function compose(): EmailComposer
5757
{
58-
return new EmailComposer(new static);
58+
return new EmailComposer(new static());
5959
}
6060

6161
/**
@@ -480,7 +480,7 @@ public function markAsFailed(Exception $exception): void
480480
*/
481481
public function send(): void
482482
{
483-
(new Sender)->send($this);
483+
(new Sender())->send($this);
484484
}
485485

486486
/**

src/EmailComposer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function mailable(Mailable $mailable): self
227227
{
228228
$this->setData('mailable', $mailable);
229229

230-
(new MailableReader)->read($this);
230+
(new MailableReader())->read($this);
231231

232232
return $this;
233233
}
@@ -272,12 +272,12 @@ public function attachData(string $data, string $name, array $options = []): sel
272272
*/
273273
public function send(): Email
274274
{
275-
(new Validator)->validate($this);
275+
(new Validator())->validate($this);
276276

277-
(new Preparer)->prepare($this);
277+
(new Preparer())->prepare($this);
278278

279279
if (Config::encryptEmails()) {
280-
(new Encrypter)->encrypt($this);
280+
(new Encrypter())->encrypt($this);
281281
}
282282

283283
$this->email->save();

src/SendEmailJob.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
class SendEmailJob implements ShouldQueue
1414
{
15-
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
15+
use Dispatchable;
16+
use InteractsWithQueue;
17+
use Queueable;
18+
use SerializesModels;
1619

1720
public $email;
1821

src/Store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Store
1616
*/
1717
public function getQueue(): Collection
1818
{
19-
$query = new Email;
19+
$query = new Email();
2020

2121
return $query
2222
->whereNull('deleted_at')

0 commit comments

Comments
 (0)