Skip to content

Commit 703dc85

Browse files
committed
Ran linter
1 parent b4c4eda commit 703dc85

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

src/Models/VerificationCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
use Fleetbase\Casts\Json;
66
use Fleetbase\Mail\VerificationMail;
7+
use Fleetbase\Services\SmsService;
78
use Fleetbase\Support\Utils;
89
use Fleetbase\Traits\Expirable;
910
use Fleetbase\Traits\HasMetaAttributes;
1011
use Fleetbase\Traits\HasSubject;
1112
use Fleetbase\Traits\HasUuid;
12-
use Fleetbase\Services\SmsService;
1313
use Fleetbase\Twilio\Support\Laravel\Facade as Twilio;
1414
use Illuminate\Support\Carbon;
1515
use Illuminate\Support\Facades\Mail;

src/Services/CallProSmsService.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function __construct()
3131
/**
3232
* Send an SMS message (static convenience method).
3333
*
34-
* @param string $to Recipient phone number (8 digits)
35-
* @param string $text Message text (max 160 characters)
34+
* @param string $to Recipient phone number (8 digits)
35+
* @param string $text Message text (max 160 characters)
3636
* @param string|null $from Optional sender ID (8 characters), defaults to config
3737
*
3838
* @return array Response containing status and message ID
@@ -49,8 +49,8 @@ public static function sendSms(string $to, string $text, ?string $from = null):
4949
/**
5050
* Send an SMS message.
5151
*
52-
* @param string $to Recipient phone number (8 digits)
53-
* @param string $text Message text (max 160 characters)
52+
* @param string $to Recipient phone number (8 digits)
53+
* @param string $text Message text (max 160 characters)
5454
* @param string|null $from Optional sender ID (8 characters), defaults to config
5555
*
5656
* @return array Response containing status and message ID
@@ -154,10 +154,10 @@ protected function validateParameters(string $to, string $text, string $from): v
154154
protected function getErrorMessage(int $statusCode): string
155155
{
156156
return match ($statusCode) {
157-
402 => 'Invalid request parameters',
158-
403 => 'Invalid API key (x-api-key)',
159-
404 => 'Invalid sender ID or recipient phone number format',
160-
503 => 'API rate limit exceeded (max 5 requests per second)',
157+
402 => 'Invalid request parameters',
158+
403 => 'Invalid API key (x-api-key)',
159+
404 => 'Invalid sender ID or recipient phone number format',
160+
503 => 'API rate limit exceeded (max 5 requests per second)',
161161
default => "API request failed with status code: {$statusCode}",
162162
};
163163
}

src/Services/SmsService.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SmsService
1111
/**
1212
* Available SMS providers.
1313
*/
14-
public const PROVIDER_TWILIO = 'twilio';
14+
public const PROVIDER_TWILIO = 'twilio';
1515
public const PROVIDER_CALLPRO = 'callpro';
1616

1717
/**
@@ -21,8 +21,6 @@ class SmsService
2121

2222
/**
2323
* Provider routing rules based on phone number prefixes.
24-
*
25-
* @var array
2624
*/
2725
protected array $routingRules = [];
2826

@@ -243,7 +241,7 @@ public function getAvailableProviders(): array
243241
],
244242
];
245243

246-
$callProService = new CallProSmsService();
244+
$callProService = new CallProSmsService();
247245
$providers[self::PROVIDER_CALLPRO] = [
248246
'name' => 'CallPro/MessagePro.mn',
249247
'available' => $callProService->isConfigured(),

0 commit comments

Comments
 (0)