Passed
Branch main (01a6e7)
by Miaad
01:27
created
types/botCommandScopeChat.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,17 +8,17 @@
 block discarded – undo
8 8
  * Represents the scope of bot commands, covering a specific chat.
9 9
  */
10 10
 class botCommandScopeChat extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = [];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = [];
13 13
 
14
-	/** Scope type, must be chat */
15
-	public string $type;
14
+    /** Scope type, must be chat */
15
+    public string $type;
16 16
 
17
-	/** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */
18
-	public int $chat_id;
17
+    /** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */
18
+    public int $chat_id;
19 19
 
20 20
 
21
-	public function __construct(stdClass $update) {
22
-		parent::__construct($update, self::subs);
23
-	}
21
+    public function __construct(stdClass $update) {
22
+        parent::__construct($update, self::subs);
23
+    }
24 24
 }
Please login to merge, or discard this patch.
types/botCommandScope.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
  * supported:
10 10
  */
11 11
 class botCommandScope extends types {
12
-	/** Keep all of properties which has sub properties */
13
-	private const subs = [];
12
+    /** Keep all of properties which has sub properties */
13
+    private const subs = [];
14 14
 
15
-	public function __construct(stdClass $update) {
16
-		parent::__construct($update, self::subs);
17
-	}
15
+    public function __construct(stdClass $update) {
16
+        parent::__construct($update, self::subs);
17
+    }
18 18
 }
Please login to merge, or discard this patch.
types/file.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -10,26 +10,26 @@
 block discarded – undo
10 10
  * least 1 hour. When the link expires, a new one can be requested by calling getFile.
11 11
  */
12 12
 class file extends types {
13
-	/** Keep all of properties which has sub properties */
14
-	private const subs = [];
13
+    /** Keep all of properties which has sub properties */
14
+    private const subs = [];
15 15
 
16
-	/** Identifier for this file, which can be used to download or reuse the file */
17
-	public string $file_id;
16
+    /** Identifier for this file, which can be used to download or reuse the file */
17
+    public string $file_id;
18 18
 
19
-	/**
20
-	 * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be
21
-	 * used to download or reuse the file.
22
-	 */
23
-	public string $file_unique_id;
19
+    /**
20
+     * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be
21
+     * used to download or reuse the file.
22
+     */
23
+    public string $file_unique_id;
24 24
 
25
-	/** Optional. File size in bytes, if known */
26
-	public int $file_size;
25
+    /** Optional. File size in bytes, if known */
26
+    public int $file_size;
27 27
 
28
-	/** Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. */
29
-	public string $file_path;
28
+    /** Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. */
29
+    public string $file_path;
30 30
 
31 31
 
32
-	public function __construct(stdClass $update) {
33
-		parent::__construct($update, self::subs);
34
-	}
32
+    public function __construct(stdClass $update) {
33
+        parent::__construct($update, self::subs);
34
+    }
35 35
 }
Please login to merge, or discard this patch.
types/inputFile.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
  * usual way that files are uploaded via the browser.
10 10
  */
11 11
 class inputFile extends types {
12
-	/** Keep all of properties which has sub properties */
13
-	private const subs = [];
12
+    /** Keep all of properties which has sub properties */
13
+    private const subs = [];
14 14
 
15
-	public function __construct(stdClass $update) {
16
-		parent::__construct($update, self::subs);
17
-	}
15
+    public function __construct(stdClass $update) {
16
+        parent::__construct($update, self::subs);
17
+    }
18 18
 }
Please login to merge, or discard this patch.
types/inputMediaDocument.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -8,45 +8,45 @@
 block discarded – undo
8 8
  * Represents a general file to be sent.
9 9
  */
10 10
 class inputMediaDocument extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['thumb' => 'BPT\types\inputFile'];
13
-
14
-	/** Type of the result, must be document */
15
-	public string $type;
16
-
17
-	/**
18
-	 * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP
19
-	 * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new
20
-	 * one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
21
-	 */
22
-	public string $media;
23
-
24
-	/**
25
-	 * Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported
26
-	 * server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and
27
-	 * height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't
28
-	 * be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the
29
-	 * thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
30
-	 */
31
-	public inputFile $thumb;
32
-
33
-	/** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */
34
-	public string $caption;
35
-
36
-	/** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */
37
-	public string $parse_mode;
38
-
39
-	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
40
-	public array $caption_entities;
41
-
42
-	/**
43
-	 * Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data.
44
-	 * Always True, if the document is sent as part of an album.
45
-	 */
46
-	public bool $disable_content_type_detection;
47
-
48
-
49
-	public function __construct(stdClass $update) {
50
-		parent::__construct($update, self::subs);
51
-	}
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['thumb' => 'BPT\types\inputFile'];
13
+
14
+    /** Type of the result, must be document */
15
+    public string $type;
16
+
17
+    /**
18
+     * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP
19
+     * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new
20
+     * one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
21
+     */
22
+    public string $media;
23
+
24
+    /**
25
+     * Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported
26
+     * server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and
27
+     * height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't
28
+     * be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the
29
+     * thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »
30
+     */
31
+    public inputFile $thumb;
32
+
33
+    /** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */
34
+    public string $caption;
35
+
36
+    /** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */
37
+    public string $parse_mode;
38
+
39
+    /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
40
+    public array $caption_entities;
41
+
42
+    /**
43
+     * Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data.
44
+     * Always True, if the document is sent as part of an album.
45
+     */
46
+    public bool $disable_content_type_detection;
47
+
48
+
49
+    public function __construct(stdClass $update) {
50
+        parent::__construct($update, self::subs);
51
+    }
52 52
 }
Please login to merge, or discard this patch.
types/botCommandScopeChatMember.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@
 block discarded – undo
8 8
  * Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
9 9
  */
10 10
 class botCommandScopeChatMember extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = [];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = [];
13 13
 
14
-	/** Scope type, must be chat_member */
15
-	public string $type;
14
+    /** Scope type, must be chat_member */
15
+    public string $type;
16 16
 
17
-	/** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */
18
-	public int $chat_id;
17
+    /** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */
18
+    public int $chat_id;
19 19
 
20
-	/** Unique identifier of the target user */
21
-	public int $user_id;
20
+    /** Unique identifier of the target user */
21
+    public int $user_id;
22 22
 
23 23
 
24
-	public function __construct(stdClass $update) {
25
-		parent::__construct($update, self::subs);
26
-	}
24
+    public function __construct(stdClass $update) {
25
+        parent::__construct($update, self::subs);
26
+    }
27 27
 }
Please login to merge, or discard this patch.
types/inputMediaPhoto.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@
 block discarded – undo
8 8
  * Represents a photo to be sent.
9 9
  */
10 10
 class inputMediaPhoto extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = [];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = [];
13 13
 
14
-	/** Type of the result, must be photo */
15
-	public string $type;
14
+    /** Type of the result, must be photo */
15
+    public string $type;
16 16
 
17
-	/**
18
-	 * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP
19
-	 * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new
20
-	 * one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
21
-	 */
22
-	public string $media;
17
+    /**
18
+     * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP
19
+     * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new
20
+     * one using multipart/form-data under <file_attach_name> name. More info on Sending Files »
21
+     */
22
+    public string $media;
23 23
 
24
-	/** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */
25
-	public string $caption;
24
+    /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */
25
+    public string $caption;
26 26
 
27
-	/** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */
28
-	public string $parse_mode;
27
+    /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */
28
+    public string $parse_mode;
29 29
 
30
-	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
31
-	public array $caption_entities;
30
+    /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
31
+    public array $caption_entities;
32 32
 
33 33
 
34
-	public function __construct(stdClass $update) {
35
-		parent::__construct($update, self::subs);
36
-	}
34
+    public function __construct(stdClass $update) {
35
+        parent::__construct($update, self::subs);
36
+    }
37 37
 }
Please login to merge, or discard this patch.
types/inlineQuery.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -9,34 +9,34 @@
 block discarded – undo
9 9
  * some default or trending results.
10 10
  */
11 11
 class inlineQuery extends types {
12
-	/** Keep all of properties which has sub properties */
13
-	private const subs = ['from' => 'BPT\types\user', 'location' => 'BPT\types\location'];
12
+    /** Keep all of properties which has sub properties */
13
+    private const subs = ['from' => 'BPT\types\user', 'location' => 'BPT\types\location'];
14 14
 
15
-	/** Unique identifier for this query */
16
-	public string $id;
15
+    /** Unique identifier for this query */
16
+    public string $id;
17 17
 
18
-	/** Sender */
19
-	public user $from;
18
+    /** Sender */
19
+    public user $from;
20 20
 
21
-	/** Text of the query (up to 256 characters) */
22
-	public string $query;
21
+    /** Text of the query (up to 256 characters) */
22
+    public string $query;
23 23
 
24
-	/** Offset of the results to be returned, can be controlled by the bot */
25
-	public string $offset;
24
+    /** Offset of the results to be returned, can be controlled by the bot */
25
+    public string $offset;
26 26
 
27
-	/**
28
-	 * Optional. Type of the chat, from which the inline query was sent. Can be either “sender” for a private
29
-	 * chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat
30
-	 * type should be always known for requests sent from official clients and most third-party clients, unless the
31
-	 * request was sent from a secret chat
32
-	 */
33
-	public string $chat_type;
27
+    /**
28
+     * Optional. Type of the chat, from which the inline query was sent. Can be either “sender” for a private
29
+     * chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat
30
+     * type should be always known for requests sent from official clients and most third-party clients, unless the
31
+     * request was sent from a secret chat
32
+     */
33
+    public string $chat_type;
34 34
 
35
-	/** Optional. Sender location, only for bots that request user location */
36
-	public location $location;
35
+    /** Optional. Sender location, only for bots that request user location */
36
+    public location $location;
37 37
 
38 38
 
39
-	public function __construct(stdClass $update) {
40
-		parent::__construct($update, self::subs);
41
-	}
39
+    public function __construct(stdClass $update) {
40
+        parent::__construct($update, self::subs);
41
+    }
42 42
 }
Please login to merge, or discard this patch.
types/botCommandScopeDefault.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@
 block discarded – undo
9 9
  * are specified for the user.
10 10
  */
11 11
 class botCommandScopeDefault extends types {
12
-	/** Keep all of properties which has sub properties */
13
-	private const subs = [];
12
+    /** Keep all of properties which has sub properties */
13
+    private const subs = [];
14 14
 
15
-	/** Scope type, must be default */
16
-	public string $type;
15
+    /** Scope type, must be default */
16
+    public string $type;
17 17
 
18 18
 
19
-	public function __construct(stdClass $update) {
20
-		parent::__construct($update, self::subs);
21
-	}
19
+    public function __construct(stdClass $update) {
20
+        parent::__construct($update, self::subs);
21
+    }
22 22
 }
Please login to merge, or discard this patch.