Passed
Push — main ( 42b0c2...e94d6b )
by Sys
09:51
created
src/Types/InlineQueryResultLocation.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -4,45 +4,45 @@
 block discarded – undo
4 4
 
5 5
 class InlineQueryResultLocation extends InlineQueryResult
6 6
 {
7
-	/** @var string */
8
-	public string $type = 'location';
7
+    /** @var string */
8
+    public string $type = 'location';
9 9
 
10
-	/** @var string */
11
-	public string $id;
10
+    /** @var string */
11
+    public string $id;
12 12
 
13
-	/** @var float */
14
-	public float $latitude;
13
+    /** @var float */
14
+    public float $latitude;
15 15
 
16
-	/** @var float */
17
-	public float $longitude;
16
+    /** @var float */
17
+    public float $longitude;
18 18
 
19
-	/** @var string */
20
-	public string $title;
19
+    /** @var string */
20
+    public string $title;
21 21
 
22
-	/** @var float|null */
23
-	public ?float $horizontalAccuracy = null;
22
+    /** @var float|null */
23
+    public ?float $horizontalAccuracy = null;
24 24
 
25
-	/** @var int|null */
26
-	public ?int $livePeriod = null;
25
+    /** @var int|null */
26
+    public ?int $livePeriod = null;
27 27
 
28
-	/** @var int|null */
29
-	public ?int $heading = null;
28
+    /** @var int|null */
29
+    public ?int $heading = null;
30 30
 
31
-	/** @var int|null */
32
-	public ?int $proximityAlertRadius = null;
31
+    /** @var int|null */
32
+    public ?int $proximityAlertRadius = null;
33 33
 
34
-	/** @var InlineKeyboardMarkup|null */
35
-	public ?InlineKeyboardMarkup $replyMarkup = null;
34
+    /** @var InlineKeyboardMarkup|null */
35
+    public ?InlineKeyboardMarkup $replyMarkup = null;
36 36
 
37
-	/** @var InputMessageContent|null */
38
-	public ?InputMessageContent $inputMessageContent = null;
37
+    /** @var InputMessageContent|null */
38
+    public ?InputMessageContent $inputMessageContent = null;
39 39
 
40
-	/** @var string|null */
41
-	public ?string $thumbUrl = null;
40
+    /** @var string|null */
41
+    public ?string $thumbUrl = null;
42 42
 
43
-	/** @var int|null */
44
-	public ?int $thumbWidth = null;
43
+    /** @var int|null */
44
+    public ?int $thumbWidth = null;
45 45
 
46
-	/** @var int|null */
47
-	public ?int $thumbHeight = null;
46
+    /** @var int|null */
47
+    public ?int $thumbHeight = null;
48 48
 }
Please login to merge, or discard this patch.
src/Types/InlineQueryResultPhoto.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -4,42 +4,42 @@
 block discarded – undo
4 4
 
5 5
 class InlineQueryResultPhoto extends InlineQueryResult
6 6
 {
7
-	/** @var string */
8
-	public string $type = 'photo';
7
+    /** @var string */
8
+    public string $type = 'photo';
9 9
 
10
-	/** @var string */
11
-	public string $id;
10
+    /** @var string */
11
+    public string $id;
12 12
 
13
-	/** @var string */
14
-	public string $photoUrl;
13
+    /** @var string */
14
+    public string $photoUrl;
15 15
 
16
-	/** @var string */
17
-	public string $thumbUrl;
16
+    /** @var string */
17
+    public string $thumbUrl;
18 18
 
19
-	/** @var int|null */
20
-	public ?int $photoWidth = null;
19
+    /** @var int|null */
20
+    public ?int $photoWidth = null;
21 21
 
22
-	/** @var int|null */
23
-	public ?int $photoHeight = null;
22
+    /** @var int|null */
23
+    public ?int $photoHeight = null;
24 24
 
25
-	/** @var string|null */
26
-	public ?string $title = null;
25
+    /** @var string|null */
26
+    public ?string $title = null;
27 27
 
28
-	/** @var string|null */
29
-	public ?string $description = null;
28
+    /** @var string|null */
29
+    public ?string $description = null;
30 30
 
31
-	/** @var string|null */
32
-	public ?string $caption = null;
31
+    /** @var string|null */
32
+    public ?string $caption = null;
33 33
 
34
-	/** @var string|null */
35
-	public ?string $parseMode = null;
34
+    /** @var string|null */
35
+    public ?string $parseMode = null;
36 36
 
37
-	/** @var Array<MessageEntity>|null */
38
-	public ?array $captionEntities = null;
37
+    /** @var Array<MessageEntity>|null */
38
+    public ?array $captionEntities = null;
39 39
 
40
-	/** @var InlineKeyboardMarkup|null */
41
-	public ?InlineKeyboardMarkup $replyMarkup = null;
40
+    /** @var InlineKeyboardMarkup|null */
41
+    public ?InlineKeyboardMarkup $replyMarkup = null;
42 42
 
43
-	/** @var InputMessageContent|null */
44
-	public ?InputMessageContent $inputMessageContent = null;
43
+    /** @var InputMessageContent|null */
44
+    public ?InputMessageContent $inputMessageContent = null;
45 45
 }
Please login to merge, or discard this patch.
src/Types/PassportElementErrorTranslationFile.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 
5 5
 class PassportElementErrorTranslationFile extends PassportElementError
6 6
 {
7
-	/** @var string */
8
-	public string $source = 'translation_file';
7
+    /** @var string */
8
+    public string $source = 'translation_file';
9 9
 
10
-	/** @var string */
11
-	public string $type;
10
+    /** @var string */
11
+    public string $type;
12 12
 
13
-	/** @var string */
14
-	public string $fileHash;
13
+    /** @var string */
14
+    public string $fileHash;
15 15
 
16
-	/** @var string */
17
-	public string $message;
16
+    /** @var string */
17
+    public string $message;
18 18
 }
Please login to merge, or discard this patch.
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.