@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | private function buildMultipartArgs(array $args): array |
| 129 | 129 | { |
| 130 | 130 | $result = []; |
| 131 | - $cleanInputMedia = function () { |
|
| 131 | + $cleanInputMedia = function() { |
|
| 132 | 132 | unset($this->inputMedia); |
| 133 | 133 | unset($this->multipart); |
| 134 | 134 | }; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | ); |
| 240 | 240 | $api = $this; |
| 241 | 241 | return $promise->then( |
| 242 | - function (ResponseInterface $webResponse) use ($api, $method) { |
|
| 242 | + function(ResponseInterface $webResponse) use ($api, $method) { |
|
| 243 | 243 | $data = json_decode($webResponse->getBody()); |
| 244 | 244 | $response = (new Response($api, $method)) |
| 245 | 245 | ->setOk($data->ok) |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | ->setDescription($data->description ?? null) |
| 249 | 249 | ->setParameters($data->parameters ?? null); |
| 250 | 250 | if (!$response->ok) { |
| 251 | - match ($response->errorCode) { |
|
| 251 | + match($response->errorCode) { |
|
| 252 | 252 | 400 => throw new TelegramBadRequestException($response->description), |
| 253 | 253 | 401 => throw new TelegramUnauthorizedException('Token invalid or expired'), |
| 254 | 254 | 403 => throw new TelegramForbiddenException($response->description), |