File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
src/Symfony/Component/Notifier Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \Notifier \Recipient ;
1313
14- use Symfony \Component \Notifier \Exception \InvalidArgumentException ;
15-
1614/**
1715 * @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
1816 *
Original file line number Diff line number Diff line change 1414use PHPUnit \Framework \TestCase ;
1515use Symfony \Component \Notifier \Exception \InvalidArgumentException ;
1616use Symfony \Component \Notifier \Recipient \Recipient ;
17- use Symfony \Component \Notifier \Recipient \SmsRecipient ;
1817
1918/**
2019 * @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
You can’t perform that action at this time.
0 commit comments