1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

style: fix linter errors

This commit is contained in:
Torsten Dittmann 2022-06-08 16:18:28 +02:00
parent 70c98b0cfc
commit e444ba6886
5 changed files with 13 additions and 13 deletions

View file

@ -842,7 +842,7 @@ App::post('/v1/account/sessions/phone')
->label('abuse-limit', 10)
->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('number', '', new ValidatorPhone, 'Phone number.')
->param('number', '', new ValidatorPhone(), 'Phone number.')
->inject('request')
->inject('response')
->inject('project')

View file

@ -981,4 +981,4 @@ App::setResource('phone', function () {
'telesign' => new Telesign($user, $secret),
default => null
};
});
});

View file

@ -9,13 +9,13 @@ class Mock extends Phone
/**
* @var string
*/
static public string $defaultDigits = '123456';
public static string $defaultDigits = '123456';
/**
* @param string $from
* @param string $to
* @param string $message
* @return void
* @return void
*/
public function send(string $from, string $to, string $message): void
{
@ -24,7 +24,7 @@ class Mock extends Phone
/**
* @param int $digits
* @return string
* @return string
*/
public function generateSecretDigits(int $digits = 6): string
{

View file

@ -15,10 +15,10 @@ class TextMagic extends Phone
private string $endpoint = 'https://rest.textmagic.com/api/v2';
/**
* @param string $from
* @param string $to
* @param string $message
* @return void
* @param string $from
* @param string $to
* @param string $message
* @return void
*/
public function send(string $from, string $to, string $message): void
{

View file

@ -15,10 +15,10 @@ class Twilio extends Phone
private string $endpoint = 'https://api.twilio.com/2010-04-01';
/**
* @param string $from
* @param string $to
* @param string $message
* @return void
* @param string $from
* @param string $to
* @param string $message
* @return void
*/
public function send(string $from, string $to, string $message): void
{