Skip to content

Commit

Permalink
[Correct] Formatting & linting
Browse files Browse the repository at this point in the history
  • Loading branch information
byawitz committed May 31, 2023
1 parent 43cc006 commit 0f4033a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/Utopia/Messaging/Adapters/SMS/Clickatell.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Clickatell extends SMSAdapter
* @param string $apiKey Clickatell API Key
*/
public function __construct(
private string $apiKey,
) {
private string $apiKey,
) {
}

public function getName(): string
Expand Down
8 changes: 4 additions & 4 deletions src/Utopia/Messaging/Adapters/SMS/Infobip.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class Infobip extends SMSAdapter
{
/**
* @param string $apiBaseUrl Infobip API Base Url
* @param string $apiKey Infobip API Key
* @param string $apiKey Infobip API Key
*/
public function __construct(
private string $apiBaseUrl,
private string $apiKey
) {
private string $apiBaseUrl,
private string $apiKey
) {
}

public function getName(): string
Expand Down
10 changes: 5 additions & 5 deletions src/Utopia/Messaging/Adapters/SMS/Plivo.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
class Plivo extends SMSAdapter
{
/**
* @param string $authId Plivo Auth ID
* @param string $authId Plivo Auth ID
* @param string $authToken Plivo Auth Token
*/
public function __construct(
private string $authId,
private string $authToken
) {
private string $authId,
private string $authToken
) {
}

public function getName(): string
Expand Down Expand Up @@ -44,7 +44,7 @@ protected function process(SMS $message): string
],
body: \http_build_query([
'text' => $message->getContent(),
'src' => $message->getFrom(),
'src' => $message->getFrom() ?? 'Plivo',
'dst' => \implode('<', $message->getTo()),
]),
);
Expand Down
4 changes: 2 additions & 2 deletions src/Utopia/Messaging/Adapters/SMS/Seven.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Seven extends SMSAdapter
* @param string $apiKey Seven API token
*/
public function __construct(
private string $apiKey
) {
private string $apiKey
) {
}

public function getName(): string
Expand Down
8 changes: 4 additions & 4 deletions src/Utopia/Messaging/Adapters/SMS/Sinch.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class Sinch extends SMSAdapter
{
/**
* @param string $servicePlanId Sinch Service plan ID
* @param string $apiToken Sinch API token
* @param string $apiToken Sinch API token
*/
public function __construct(
private string $servicePlanId,
private string $apiToken
) {
private string $servicePlanId,
private string $apiToken
) {
}

public function getName(): string
Expand Down

0 comments on commit 0f4033a

Please sign in to comment.