@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | private function buildMultipartArgs(array $args): array |
104 | 104 | { |
105 | 105 | $result = []; |
106 | - $cleanInputMedia = function () { |
|
106 | + $cleanInputMedia = function() { |
|
107 | 107 | unset($this->inputMedia); |
108 | 108 | unset($this->multipart); |
109 | 109 | }; |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | ); |
215 | 215 | $api = $this; |
216 | 216 | return $promise->then( |
217 | - function (ResponseInterface $webResponse) use ($api, $method) { |
|
217 | + function(ResponseInterface $webResponse) use ($api, $method) { |
|
218 | 218 | $data = json_decode($webResponse->getBody()); |
219 | 219 | $response = (new Response($api, $method)) |
220 | 220 | ->setOk($data->ok) |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | ->setErrorCode($data->error_code ?? null) |
223 | 223 | ->setDescription($data->description ?? null); |
224 | 224 | if (!$response->ok) { |
225 | - match ($response->errorCode) { |
|
225 | + match($response->errorCode) { |
|
226 | 226 | 400 => throw new TelegramBadRequestException($response->description), |
227 | 227 | 401 => throw new TelegramUnauthorizedException('Token invalid or expired'), |
228 | 228 | 403 => throw new TelegramForbiddenException($response->description), |