10000 * LightSmsTransport.php - Coding Standard · symfony/symfony@15686c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15686c0

Browse files
Vasilij DuskoVasilij Dusko | CREATION
Vasilij Dusko
authored and
Vasilij Dusko | CREATION
committed
* LightSmsTransport.php - Coding Standard
1 parent 2f65b92 commit 15686c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Notifier\Bridge\LightSms;
1313

14-
use Symfony\Component\HttpFoundation\Response;
1514
use Symfony\Component\Notifier\Exception\TransportException;
1615
use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException;
1716
use Symfony\Component\Notifier\Message\MessageInterface;
@@ -132,7 +131,7 @@ protected function doSend(MessageInterface $message): SentMessage
132131
throw new TransportException('Unable to send the SMS: '.$this->errorCodes[$content['error']], $response);
133132
}
134133

135-
$phone = preg_replace("/[^\d]/", "", $message->getPhone());
134+
$phone = preg_replace("/[^\d]/", '', $message->getPhone());
136135
if (32 == $content[$phone]['error']) {
137136
throw new TransportException('Unable to send the SMS: '.$this->errorCodes[$content['error']], $response);
138137
}

0 commit comments

Comments
 (0)
0