@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | public const SCHEMA = [ |
| 28 | 28 | 'name' => 'SerwerSMS', |
| 29 | 29 | 'fields' => [ |
| 30 | - ['field' => 'login', 'prompt' => 'Please enter your SerwerSMS.pl API login:'], |
|
| 31 | - ['field' => 'password', 'prompt' => 'Please enter your SerwerSMS.pl API password:'], |
|
| 32 | - ['field' => 'sender', 'prompt' => 'Please enter your SerwerSMS.pl sender name:'], |
|
| 30 | + [ 'field' => 'login', 'prompt' => 'Please enter your SerwerSMS.pl API login:' ], |
|
| 31 | + [ 'field' => 'password', 'prompt' => 'Please enter your SerwerSMS.pl API password:' ], |
|
| 32 | + [ 'field' => 'sender', 'prompt' => 'Please enter your SerwerSMS.pl sender name:' ], |
|
| 33 | 33 | ], |
| 34 | 34 | ]; |
| 35 | 35 | private IClient $client; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $this->client = $clientService->newClient(); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - #[\Override] |
|
| 43 | + #[\Override ] |
|
| 44 | 44 | public function send(string $identifier, string $message) { |
| 45 | 45 | $login = $this->getLogin(); |
| 46 | 46 | $password = $this->getPassword(); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | $responseData = json_decode((string)$response->getBody(), true); |
| 63 | 63 | |
| 64 | - if ($responseData['success'] !== true) { |
|
| 64 | + if ($responseData[ 'success' ] !== true) { |
|
| 65 | 65 | throw new MessageTransmissionException(); |
| 66 | 66 | } |
| 67 | 67 | } catch (Exception $ex) { |