Skip to content

Commit 72cb155

Browse files
committed
[Notifier] cs fixes
1 parent 5c2434f commit 72cb155

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/Symfony/Component/Notifier/Recipient/Assert.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function email(string $email): void
2929
throw new InvalidArgumentException('E-Mail must be set.');
3030
}
3131

32-
if (!\preg_match(self::PATTERN_HTML5, $email)) {
32+
if (!preg_match(self::PATTERN_HTML5, $email)) {
3333
throw new InvalidArgumentException('E-Mail is not valid.');
3434
}
3535
}
@@ -40,7 +40,7 @@ public static function phone(string $phone): void
4040
throw new InvalidArgumentException('Phone number must be set (no spaces, international code like in +3312345678).');
4141
}
4242

43-
if (!\preg_match(self::PATTERN_PHONE, $phone)) {
43+
if (!preg_match(self::PATTERN_PHONE, $phone)) {
4444
throw new InvalidArgumentException('Phone number is not valid (no spaces, international code like in +3312345678).');
4545
}
4646
}

src/Symfony/Component/Notifier/Recipient/SmsRecipient.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Notifier\Recipient;
1313

14-
use Symfony\Component\Notifier\Exception\InvalidArgumentException;
15-
1614
/**
1715
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
1816
*

src/Symfony/Component/Notifier/Tests/Recipient/RecipientTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Notifier\Exception\InvalidArgumentException;
1616
use Symfony\Component\Notifier\Recipient\Recipient;
17-
use Symfony\Component\Notifier\Recipient\SmsRecipient;
1817

1918
/**
2019
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy