Skip to content

Commit cbb787d

Browse files
mbardelmeijeractions-user
authored andcommitted
Fix styling
1 parent 4211c2a commit cbb787d

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

src/CmsmsChannel.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ class CmsmsChannel
1010
{
1111
public function __construct(
1212
protected CmsmsClient $client,
13-
)
14-
{
13+
) {
1514
}
1615

1716
public function send($notifiable, Notification $notification)
1817
{
19-
if (!$recipient = $notifiable->routeNotificationFor('Cmsms')) {
18+
if (! $recipient = $notifiable->routeNotificationFor('Cmsms')) {
2019
return;
2120
}
2221

src/CmsmsClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CmsmsClient
1616
public function __construct(
1717
protected GuzzleClient $client,
1818
protected string $productToken,
19-
) {
19+
) {
2020
$this->client = $client;
2121
$this->productToken = $productToken;
2222
}
@@ -28,7 +28,7 @@ public function send(CmsmsMessage $message, string $recipient)
2828
}
2929

3030
$response = $this->client->request('POST', static::GATEWAY_URL, [
31-
'body' => $this->buildMessageXml($message, $recipient),
31+
'body' => $this->buildMessageXml($message, $recipient),
3232
'headers' => [
3333
'Content-Type' => 'application/xml',
3434
],
@@ -37,7 +37,7 @@ public function send(CmsmsMessage $message, string $recipient)
3737
// API returns an empty string on success
3838
// On failure, only the error string is passed
3939
$body = $response->getBody()->getContents();
40-
if (!empty($body)) {
40+
if (! empty($body)) {
4141
throw CouldNotSendNotification::serviceRespondedWithAnError($body);
4242
}
4343
}

src/CmsmsMessage.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ class CmsmsMessage
2020

2121
private function __construct(
2222
protected string $body = ''
23-
)
24-
{
23+
) {
2524
$this->body($body);
2625
}
2726

@@ -45,7 +44,7 @@ public function originator(string|int $originator): self
4544

4645
public function reference(string $reference): self
4746
{
48-
if (empty($reference) || strlen($reference) > 32 || !ctype_alnum($reference)) {
47+
if (empty($reference) || strlen($reference) > 32 || ! ctype_alnum($reference)) {
4948
throw InvalidMessage::invalidReference($reference);
5049
}
5150

@@ -81,9 +80,9 @@ public function multipart(int $minimum, int $maximum): self
8180
public function toXmlArray(): array
8281
{
8382
return array_filter([
84-
'BODY' => $this->body,
85-
'FROM' => $this->originator,
86-
'REFERENCE' => $this->reference,
83+
'BODY' => $this->body,
84+
'FROM' => $this->originator,
85+
'REFERENCE' => $this->reference,
8786
'MINIMUMNUMBEROFMESSAGEPARTS' => $this->minimumNumberOfMessageParts,
8887
'MAXIMUMNUMBEROFMESSAGEPARTS' => $this->maximumNumberOfMessageParts,
8988
]);

0 commit comments

Comments
 (0)