style: fix linter errors
This commit is contained in:
parent
70c98b0cfc
commit
e444ba6886
|
@ -842,7 +842,7 @@ App::post('/v1/account/sessions/phone')
|
||||||
->label('abuse-limit', 10)
|
->label('abuse-limit', 10)
|
||||||
->label('abuse-key', 'url:{url},email:{param-email}')
|
->label('abuse-key', 'url:{url},email:{param-email}')
|
||||||
->param('userId', '', new CustomId(), 'Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
|
->param('userId', '', new CustomId(), 'Unique Id. Choose your own unique ID or pass the string "unique()" to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
|
||||||
->param('number', '', new ValidatorPhone, 'Phone number.')
|
->param('number', '', new ValidatorPhone(), 'Phone number.')
|
||||||
->inject('request')
|
->inject('request')
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->inject('project')
|
->inject('project')
|
||||||
|
|
|
@ -981,4 +981,4 @@ App::setResource('phone', function () {
|
||||||
'telesign' => new Telesign($user, $secret),
|
'telesign' => new Telesign($user, $secret),
|
||||||
default => null
|
default => null
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,13 +9,13 @@ class Mock extends Phone
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
static public string $defaultDigits = '123456';
|
public static string $defaultDigits = '123456';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $from
|
* @param string $from
|
||||||
* @param string $to
|
* @param string $to
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function send(string $from, string $to, string $message): void
|
public function send(string $from, string $to, string $message): void
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,7 @@ class Mock extends Phone
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $digits
|
* @param int $digits
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function generateSecretDigits(int $digits = 6): string
|
public function generateSecretDigits(int $digits = 6): string
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,10 +15,10 @@ class TextMagic extends Phone
|
||||||
private string $endpoint = 'https://rest.textmagic.com/api/v2';
|
private string $endpoint = 'https://rest.textmagic.com/api/v2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $from
|
* @param string $from
|
||||||
* @param string $to
|
* @param string $to
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function send(string $from, string $to, string $message): void
|
public function send(string $from, string $to, string $message): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,10 +15,10 @@ class Twilio extends Phone
|
||||||
private string $endpoint = 'https://api.twilio.com/2010-04-01';
|
private string $endpoint = 'https://api.twilio.com/2010-04-01';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $from
|
* @param string $from
|
||||||
* @param string $to
|
* @param string $to
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function send(string $from, string $to, string $message): void
|
public function send(string $from, string $to, string $message): void
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue