Skip to content

Commit 3c5a61c

Browse files
committed
chore: review
1 parent 6867085 commit 3c5a61c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/Utopia/Messaging/Adapter/SMS/Inforu.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class Inforu extends SMSAdapter
1717
* @param string $senderId Sender ID
1818
*/
1919
public function __construct(
20+
private string $senderId,
2021
private string $apiToken,
21-
private string $senderId
2222
) {
2323
}
2424

@@ -46,8 +46,6 @@ protected function process(SMSMessage $message): array
4646
$message->getTo()
4747
);
4848

49-
fwrite(STDOUT, json_encode($recipients, JSON_PRETTY_PRINT));
50-
5149
$result = $this->request(
5250
method: 'POST',
5351
url: 'https://capi.inforu.co.il/api/v2/SMS/SendSms',

tests/Messaging/Adapter/SMS/InforuTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class InforuTest extends Base
1414
public function testSendSMS(): void
1515
{
1616
$sender = new Inforu(
17+
senderId: \getenv('INFORU_SENDER_ID'),
1718
apiToken: \getenv('INFORU_API_TOKEN'),
18-
senderId: \getenv('INFORU_SENDER_ID')
1919
);
2020

2121
$message = new SMS(

0 commit comments

Comments
 (0)