@@ -40,12 +40,12 @@ |
||
40 | 40 | ]; |
41 | 41 | |
42 | 42 | $params = array_merge($params, $base); |
43 | - $url = $this->apiUrl.'?'.http_build_query($params); |
|
43 | + $url = $this->apiUrl . '?' . http_build_query($params); |
|
44 | 44 | |
45 | 45 | $response = $this->httpClient->get($url); |
46 | - $response = json_decode((string) $response->getBody(), true); |
|
46 | + $response = json_decode((string)$response->getBody(), true); |
|
47 | 47 | |
48 | - if (isset($response['ErrorCode']) && (int) $response['ErrorCode'] !== 0) { |
|
48 | + if (isset($response['ErrorCode']) && (int)$response['ErrorCode'] !== 0) { |
|
49 | 49 | throw new DomainException($response['Message'], $response['ErrorCode']); |
50 | 50 | } |
51 | 51 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | throw_unless($config, InvalidConfiguration::class); |
21 | 21 | |
22 | - $this->app->singleton(SMSOffice::class, function () use ($config) { |
|
22 | + $this->app->singleton(SMSOffice::class, function() use ($config) { |
|
23 | 23 | return new SMSOffice($config['key'], $config['sender']); |
24 | 24 | }); |
25 | 25 | } |