Passed
Push — main ( 42b0c2...e94d6b )
by Sys
09:51
created
src/API.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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),
Please login to merge, or discard this patch.