Skip to content

Commit 83d2598

Browse files
author
Vasilij Dusko | CREATION
committed
* Coding Standard patch
1 parent 1ff97e4 commit 83d2598

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -33,46 +33,46 @@ final class LightSmsTransport extends AbstractTransport
3333
private $from;
3434

3535
private const ERROR_CODES = [
36-
000 => 'Service unavailable',
37-
1 => 'Missing Signature',
38-
2 => 'Login not specified',
39-
3 => 'Text not specified',
40-
4 => 'Phone number not specified',
41-
5 => 'Sender not specified',
42-
6 => 'Invalid signature',
43-
7 => 'Invalid login',
44-
8 => 'Invalid sender name',
45-
9 => 'Sender name not registered',
46-
10 => 'Sender name not approved',
47-
11 => 'There are forbidden words in the text',
48-
12 => 'Error in SMS sending',
49-
13 => 'Phone number is in the blackist. SMS sending to this number is forbidden.',
50-
14 => 'There are more than 50 numbers in the request',
51-
15 => 'List not specified',
52-
16 => 'Invalid phone number',
53-
17 => 'SMS ID not specified',
54-
18 => 'Status not obtained',
55-
19 => 'Empty response',
56-
20 => 'The number already exists',
57-
21 => 'No name',
58-
22 => 'Template already exists',
59-
23 => 'Missing Month (Format: YYYY-MM)',
60-
24 => 'Timestamp not specified',
61-
25 => 'Error in access to the list',
62-
26 => 'There are no numbers in the list',
63-
27 => 'No valid numbers',
64-
28 => 'Missing start date (Format: YYYY-MM-DD)',
65-
29 => 'Missing end date (Format: YYYY-MM-DD)',
66-
30 => 'No date (format: YYYY-MM-DD)',
67-
31 => 'Closing direction to the user',
68-
32 => 'Not enough money',
69-
33 => 'Missing phone number',
70-
34 => 'Phone is in stop list',
71-
35 => 'Not enough money',
72-
36 => 'Can not obtain information about phone',
73-
37 => 'Base Id is not set',
74-
38 => 'Phone number already exists in this database',
75-
39 => 'Phone number does not exist in this database',
36+
000 => 'Service unavailable',
37+
1 => 'Missing Signature',
38+
2 => 'Login not specified',
39+
3 => 'Text not specified',
40+
4 => 'Phone number not specified',
41+
5 => 'Sender not specified',
42+
6 => 'Invalid signature',
43+
7 => 'Invalid login',
44+
8 => 'Invalid sender name',
45+
9 => 'Sender name not registered',
46+
10 => 'Sender name not approved',
47+
11 => 'There are forbidden words in the text',
48+
12 => 'Error in SMS sending',
49+
13 => 'Phone number is in the blackist. SMS sending to this number is forbidden.',
50+
14 => 'There are more than 50 numbers in the request',
51+
15 => 'List not specified',
52+
16 => 'Invalid phone number',
53+
17 => 'SMS ID not specified',
54+
18 => 'Status not obtained',
55+
19 => 'Empty response',
56+
20 => 'The number already exists',
57+
21 => 'No name',
58+
22 => 'Template already exists',
59+
23 => 'Missing Month (Format: YYYY-MM)',
60+
24 => 'Timestamp not specified',
61+
25 => 'Error in access to the list',
62+
26 => 'There are no numbers in the list',
63+
27 => 'No valid numbers',
64+
28 => 'Missing start date (Format: YYYY-MM-DD)',
65+
29 => 'Missing end date (Format: YYYY-MM-DD)',
66+
30 => 'No date (format: YYYY-MM-DD)',
67+
31 => 'Closing direction to the user',
68+
32 => 'Not enough money',
69+
33 => 'Missing phone number',
70+
34 => 'Phone is in stop list',
71+
35 => 'Not enough money',
72+
36 => 'Can not obtain information about phone',
73+
37 => 'Base Id is not set',
74+
38 => 'Phone number already exists in this database',
75+
39 => 'Phone number does not exist in this database',
7676
];
7777

7878
public function __construct(string $login, string $password, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
@@ -102,11 +102,11 @@ protected function doSend(MessageInterface $message): SentMessage
102102

103103
$timestamp = time();
104104
$data = [
105-
'login' => $this->login,
106-
'phone' => $this->escapePhoneNumber($message->getPhone()),
107-
'text' => $message->getSubject(),
108-
'sender' => $this->from,
109-
'timestamp' => $timestamp
105+
'login' => $this->login,
106+
'phone' => $this->escapePhoneNumber($message->getPhone()),
107+
'text' => $message->getSubject(),
108+
'sender' => $this->from,
109+
'timestamp' => $timestamp,
110110
];
111111
$data['signature'] = $this->generateSignature($data, $timestamp);
112112
$endpoint = 'https://'.$this->getEndpoint().'/external/get/send.php?'.http_build_query($data);

0 commit comments

Comments
 (0)