Skip to content

Commit 72f0786

Browse files
committed
Merge branch 'updates' of https://github.com/beyondcode/laravel-mailbox into updates
2 parents 6cb0dfe + 6597aa2 commit 72f0786

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/Http/Middleware/MailboxBasicAuthentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function handle($request, Closure $next)
1212
$user = $request->getUser();
1313
$password = $request->getPassword();
1414

15-
if (($user === config('mailbox.basic_auth.username') && $password === config('mailbox.basic_auth.password'))) {
15+
if ($user === config('mailbox.basic_auth.username') && $password === config('mailbox.basic_auth.password')) {
1616
return $next($request);
1717
}
1818

src/Routing/Route.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,24 @@ protected function gatherMatchSubjectsFromMessage(InboundEmail $message)
8383
switch ($this->subject) {
8484
case self::FROM:
8585
return [$message->from()];
86-
break;
86+
break;
8787
case self::TO:
8888
return $this->convertMessageAddresses($message->to());
89-
break;
89+
break;
9090
case self::CC:
9191
return $this->convertMessageAddresses($message->cc());
92-
break;
92+
break;
9393
case self::BCC:
9494
return $this->convertMessageAddresses($message->bcc());
9595
break;
9696
case self::SUBJECT:
9797
return [$message->subject()];
98-
break;
98+
break;
9999
}
100100
}
101101

102102
/**
103-
* @param $addresses AddressPart[]
103+
* @param $addresses AddressPart[]
104104
* @return array
105105
*/
106106
protected function convertMessageAddresses($addresses): array

tests/MailboxRouteTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function emailDataProvider()
1818

1919
/**
2020
* @test
21+
*
2122
* @dataProvider emailDataProvider
2223
*/
2324
public function it_matches_from_mails($fromMail, $successfulPattern, $failingPattern)
@@ -36,6 +37,7 @@ public function it_matches_from_mails($fromMail, $successfulPattern, $failingPat
3637

3738
/**
3839
* @test
40+
*
3941
* @dataProvider emailDataProvider
4042
*/
4143
public function it_matches_to_mails($toMail, $successfulPattern, $failingPattern)
@@ -54,6 +56,7 @@ public function it_matches_to_mails($toMail, $successfulPattern, $failingPattern
5456

5557
/**
5658
* @test
59+
*
5760
* @dataProvider emailDataProvider
5861
*/
5962
public function it_matches_cc_mails($ccMail, $successfulPattern, $failingPattern)
@@ -72,6 +75,7 @@ public function it_matches_cc_mails($ccMail, $successfulPattern, $failingPattern
7275

7376
/**
7477
* @test
78+
*
7579
* @dataProvider emailDataProvider
7680
*/
7781
public function it_matches_bcc_mails($bccMail, $successfulPattern, $failingPattern)
@@ -90,6 +94,7 @@ public function it_matches_bcc_mails($bccMail, $successfulPattern, $failingPatte
9094

9195
/**
9296
* @test
97+
*
9398
* @dataProvider subjectDataProvider
9499
*/
95100
public function it_matches_subjects($subject, $successfulPattern, $failingPattern)

0 commit comments

Comments
 (0)