Skip to content

Commit 21e972a

Browse files
committed
* coding standard
1 parent bea5256 commit 21e972a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@ protected function doSend(MessageInterface $message): SentMessage
121121

122122
// it happens if the host without www
123123
if (isset($content['']['error'])) {
124-
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int)$content['']['error']), $response);
124+
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int) $content['']['error']), $response);
125125
}
126126

127127
if (isset($content['error'])) {
128-
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int)$content['error']), $response);
128+
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int) $content['error']), $response);
129129
}
130130

131131
$phone = $this->escapePhoneNumber($message->getPhone());
132-
if (32 === (int)$content[$phone]['error']) {
133-
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int)$content[$phone]['error']), $response);
132+
if (32 === (int) $content[$phone]['error']) {
133+
throw new TransportException('Unable to send the SMS: '.$this->getErrorMsg((int) $content[$phone]['error']), $response);
134134
}
135135

136-
if (0 === (int)$content[$phone]['error']) {
136+
if (0 === (int) $content[$phone]['error']) {
137137
$sentMessage = new SentMessage($message, (string) $this);
138138
$sentMessage->setMessageId($content[$phone]['id_sms']);
139139

@@ -166,6 +166,6 @@ private function escapePhoneNumber(string $phoneNumber): string
166166

167167
private function getErrorMsg(int $errorCode): string
168168
{
169-
return isset(self::ERROR_CODES[$errorCode]) ? self::ERROR_CODES[$errorCode] : self::ERROR_CODES[999];
169+
return self::ERROR_CODES[$errorCode] ?? self::ERROR_CODES[999];
170170
}
171171
}

0 commit comments

Comments
 (0)