Passed
Push — main ( bfb9d3...b0527a )
by Miaad
01:30
created
types/chatInviteLink.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -8,44 +8,44 @@
 block discarded – undo
8 8
  * Represents an invite link for a chat.
9 9
  */
10 10
 class chatInviteLink extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['creator' => 'BPT\types\user'];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['creator' => 'BPT\types\user'];
13 13
 
14
-	/**
15
-	 * The invite link. If the link was created by another chat administrator, then the second part of the link will
16
-	 * be replaced with “…”.
17
-	 */
18
-	public string $invite_link;
14
+    /**
15
+     * The invite link. If the link was created by another chat administrator, then the second part of the link will
16
+     * be replaced with “…”.
17
+     */
18
+    public string $invite_link;
19 19
 
20
-	/** Creator of the link */
21
-	public user $creator;
20
+    /** Creator of the link */
21
+    public user $creator;
22 22
 
23
-	/** True, if users joining the chat via the link need to be approved by chat administrators */
24
-	public bool $creates_join_request;
23
+    /** True, if users joining the chat via the link need to be approved by chat administrators */
24
+    public bool $creates_join_request;
25 25
 
26
-	/** True, if the link is primary */
27
-	public bool $is_primary;
26
+    /** True, if the link is primary */
27
+    public bool $is_primary;
28 28
 
29
-	/** True, if the link is revoked */
30
-	public bool $is_revoked;
29
+    /** True, if the link is revoked */
30
+    public bool $is_revoked;
31 31
 
32
-	/** Optional. Invite link name */
33
-	public string $name;
32
+    /** Optional. Invite link name */
33
+    public string $name;
34 34
 
35
-	/** Optional. Point in time (Unix timestamp) when the link will expire or has been expired */
36
-	public int $expire_date;
35
+    /** Optional. Point in time (Unix timestamp) when the link will expire or has been expired */
36
+    public int $expire_date;
37 37
 
38
-	/**
39
-	 * Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via
40
-	 * this invite link; 1-99999
41
-	 */
42
-	public int $member_limit;
38
+    /**
39
+     * Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via
40
+     * this invite link; 1-99999
41
+     */
42
+    public int $member_limit;
43 43
 
44
-	/** Optional. Number of pending join requests created using this link */
45
-	public int $pending_join_request_count;
44
+    /** Optional. Number of pending join requests created using this link */
45
+    public int $pending_join_request_count;
46 46
 
47 47
 
48
-	public function __construct(stdClass $update) {
49
-		parent::__construct($update, self::subs);
50
-	}
48
+    public function __construct(stdClass $update) {
49
+        parent::__construct($update, self::subs);
50
+    }
51 51
 }
Please login to merge, or discard this patch.
types/inputTextMessageContent.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -8,23 +8,23 @@
 block discarded – undo
8 8
  * Represents the content of a text message to be sent as the result of an inline query.
9 9
  */
10 10
 class inputTextMessageContent 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
-	/** Text of the message to be sent, 1-4096 characters */
15
-	public string $message_text;
14
+    /** Text of the message to be sent, 1-4096 characters */
15
+    public string $message_text;
16 16
 
17
-	/** Optional. Mode for parsing entities in the message text. See formatting options for more details. */
18
-	public string $parse_mode;
17
+    /** Optional. Mode for parsing entities in the message text. See formatting options for more details. */
18
+    public string $parse_mode;
19 19
 
20
-	/** Optional. List of special entities that appear in message text, which can be specified instead of parse_mode */
21
-	public array $entities;
20
+    /** Optional. List of special entities that appear in message text, which can be specified instead of parse_mode */
21
+    public array $entities;
22 22
 
23
-	/** Optional. Disables link previews for links in the sent message */
24
-	public bool $disable_web_page_preview;
23
+    /** Optional. Disables link previews for links in the sent message */
24
+    public bool $disable_web_page_preview;
25 25
 
26 26
 
27
-	public function __construct(stdClass $update) {
28
-		parent::__construct($update, self::subs);
29
-	}
27
+    public function __construct(stdClass $update) {
28
+        parent::__construct($update, self::subs);
29
+    }
30 30
 }
Please login to merge, or discard this patch.
types/botCommandScopeAllChatAdministrators.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
  * Represents the scope of bot commands, covering all group and supergroup chat administrators.
9 9
  */
10 10
 class botCommandScopeAllChatAdministrators 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 all_chat_administrators */
15
-	public string $type;
14
+    /** Scope type, must be all_chat_administrators */
15
+    public string $type;
16 16
 
17 17
 
18
-	public function __construct(stdClass $update) {
19
-		parent::__construct($update, self::subs);
20
-	}
18
+    public function __construct(stdClass $update) {
19
+        parent::__construct($update, self::subs);
20
+    }
21 21
 }
Please login to merge, or discard this patch.
types/callbackQuery.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -11,41 +11,41 @@
 block discarded – undo
11 11
  * present. Exactly one of the fields data or game_short_name will be present.
12 12
  */
13 13
 class callbackQuery extends types {
14
-	/** Keep all of properties which has sub properties */
15
-	private const subs = ['from' => 'BPT\types\user', 'message' => 'BPT\types\message'];
14
+    /** Keep all of properties which has sub properties */
15
+    private const subs = ['from' => 'BPT\types\user', 'message' => 'BPT\types\message'];
16 16
 
17
-	/** Unique identifier for this query */
18
-	public string $id;
17
+    /** Unique identifier for this query */
18
+    public string $id;
19 19
 
20
-	/** Sender */
21
-	public user $from;
20
+    /** Sender */
21
+    public user $from;
22 22
 
23
-	/**
24
-	 * Optional. Message with the callback button that originated the query. Note that message content and message
25
-	 * date will not be available if the message is too old
26
-	 */
27
-	public message $message;
23
+    /**
24
+     * Optional. Message with the callback button that originated the query. Note that message content and message
25
+     * date will not be available if the message is too old
26
+     */
27
+    public message $message;
28 28
 
29
-	/** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */
30
-	public string $inline_message_id;
29
+    /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */
30
+    public string $inline_message_id;
31 31
 
32
-	/**
33
-	 * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent.
34
-	 * Useful for high scores in games.
35
-	 */
36
-	public string $chat_instance;
32
+    /**
33
+     * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent.
34
+     * Useful for high scores in games.
35
+     */
36
+    public string $chat_instance;
37 37
 
38
-	/**
39
-	 * Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this
40
-	 * field.
41
-	 */
42
-	public string $data;
38
+    /**
39
+     * Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this
40
+     * field.
41
+     */
42
+    public string $data;
43 43
 
44
-	/** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */
45
-	public string $game_short_name;
44
+    /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */
45
+    public string $game_short_name;
46 46
 
47 47
 
48
-	public function __construct(stdClass $update) {
49
-		parent::__construct($update, self::subs);
50
-	}
48
+    public function __construct(stdClass $update) {
49
+        parent::__construct($update, self::subs);
50
+    }
51 51
 }
Please login to merge, or discard this patch.
types/game.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -9,33 +9,33 @@
 block discarded – undo
9 9
  * identifiers.
10 10
  */
11 11
 class game extends types {
12
-	/** Keep all of properties which has sub properties */
13
-	private const subs = ['animation' => 'BPT\types\animation'];
12
+    /** Keep all of properties which has sub properties */
13
+    private const subs = ['animation' => 'BPT\types\animation'];
14 14
 
15
-	/** Title of the game */
16
-	public string $title;
15
+    /** Title of the game */
16
+    public string $title;
17 17
 
18
-	/** Description of the game */
19
-	public string $description;
18
+    /** Description of the game */
19
+    public string $description;
20 20
 
21
-	/** Photo that will be displayed in the game message in chats. */
22
-	public array $photo;
21
+    /** Photo that will be displayed in the game message in chats. */
22
+    public array $photo;
23 23
 
24
-	/**
25
-	 * Optional. Brief description of the game or high scores included in the game message. Can be automatically
26
-	 * edited to include current high scores for the game when the bot calls setGameScore, or manually edited using
27
-	 * editMessageText. 0-4096 characters.
28
-	 */
29
-	public string $text;
24
+    /**
25
+     * Optional. Brief description of the game or high scores included in the game message. Can be automatically
26
+     * edited to include current high scores for the game when the bot calls setGameScore, or manually edited using
27
+     * editMessageText. 0-4096 characters.
28
+     */
29
+    public string $text;
30 30
 
31
-	/** Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. */
32
-	public array $text_entities;
31
+    /** Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. */
32
+    public array $text_entities;
33 33
 
34
-	/** Optional. Animation that will be displayed in the game message in chats. Upload via BotFather */
35
-	public animation $animation;
34
+    /** Optional. Animation that will be displayed in the game message in chats. Upload via BotFather */
35
+    public animation $animation;
36 36
 
37 37
 
38
-	public function __construct(stdClass $update) {
39
-		parent::__construct($update, self::subs);
40
-	}
38
+    public function __construct(stdClass $update) {
39
+        parent::__construct($update, self::subs);
40
+    }
41 41
 }
Please login to merge, or discard this patch.
types/inputMediaVideo.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -8,51 +8,51 @@
 block discarded – undo
8 8
  * Represents a video to be sent.
9 9
  */
10 10
 class inputMediaVideo extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['thumb' => 'BPT\types\inputFile'];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['thumb' => 'BPT\types\inputFile'];
13 13
 
14
-	/** Type of the result, must be video */
15
-	public string $type;
14
+    /** Type of the result, must be video */
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
-	/**
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;
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 32
 
33
-	/** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */
34
-	public string $caption;
33
+    /** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */
34
+    public string $caption;
35 35
 
36
-	/** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */
37
-	public string $parse_mode;
36
+    /** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */
37
+    public string $parse_mode;
38 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;
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 41
 
42
-	/** Optional. Video width */
43
-	public int $width;
42
+    /** Optional. Video width */
43
+    public int $width;
44 44
 
45
-	/** Optional. Video height */
46
-	public int $height;
45
+    /** Optional. Video height */
46
+    public int $height;
47 47
 
48
-	/** Optional. Video duration in seconds */
49
-	public int $duration;
48
+    /** Optional. Video duration in seconds */
49
+    public int $duration;
50 50
 
51
-	/** Optional. Pass True, if the uploaded video is suitable for streaming */
52
-	public bool $supports_streaming;
51
+    /** Optional. Pass True, if the uploaded video is suitable for streaming */
52
+    public bool $supports_streaming;
53 53
 
54 54
 
55
-	public function __construct(stdClass $update) {
56
-		parent::__construct($update, self::subs);
57
-	}
55
+    public function __construct(stdClass $update) {
56
+        parent::__construct($update, self::subs);
57
+    }
58 58
 }
Please login to merge, or discard this patch.
types/chosenInlineResult.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -8,29 +8,29 @@
 block discarded – undo
8 8
  * Represents a result of an inline query that was chosen by the user and sent to their chat partner.
9 9
  */
10 10
 class chosenInlineResult extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['from' => 'BPT\types\user', 'location' => 'BPT\types\location'];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['from' => 'BPT\types\user', 'location' => 'BPT\types\location'];
13 13
 
14
-	/** The unique identifier for the result that was chosen */
15
-	public string $result_id;
14
+    /** The unique identifier for the result that was chosen */
15
+    public string $result_id;
16 16
 
17
-	/** The user that chose the result */
18
-	public user $from;
17
+    /** The user that chose the result */
18
+    public user $from;
19 19
 
20
-	/** Optional. Sender location, only for bots that require user location */
21
-	public location $location;
20
+    /** Optional. Sender location, only for bots that require user location */
21
+    public location $location;
22 22
 
23
-	/**
24
-	 * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the
25
-	 * message. Will be also received in callback queries and can be used to edit the message.
26
-	 */
27
-	public string $inline_message_id;
23
+    /**
24
+     * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the
25
+     * message. Will be also received in callback queries and can be used to edit the message.
26
+     */
27
+    public string $inline_message_id;
28 28
 
29
-	/** The query that was used to obtain the result */
30
-	public string $query;
29
+    /** The query that was used to obtain the result */
30
+    public string $query;
31 31
 
32 32
 
33
-	public function __construct(stdClass $update) {
34
-		parent::__construct($update, self::subs);
35
-	}
33
+    public function __construct(stdClass $update) {
34
+        parent::__construct($update, self::subs);
35
+    }
36 36
 }
Please login to merge, or discard this patch.
types/botCommandScopeAllGroupChats.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
  * Represents the scope of bot commands, covering all group and supergroup chats.
9 9
  */
10 10
 class botCommandScopeAllGroupChats 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 all_group_chats */
15
-	public string $type;
14
+    /** Scope type, must be all_group_chats */
15
+    public string $type;
16 16
 
17 17
 
18
-	public function __construct(stdClass $update) {
19
-		parent::__construct($update, self::subs);
20
-	}
18
+    public function __construct(stdClass $update) {
19
+        parent::__construct($update, self::subs);
20
+    }
21 21
 }
Please login to merge, or discard this patch.
types/animation.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -8,41 +8,41 @@
 block discarded – undo
8 8
  * This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
9 9
  */
10 10
 class animation extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['thumb' => 'BPT\types\photoSize'];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['thumb' => 'BPT\types\photoSize'];
13 13
 
14
-	/** Identifier for this file, which can be used to download or reuse the file */
15
-	public string $file_id;
14
+    /** Identifier for this file, which can be used to download or reuse the file */
15
+    public string $file_id;
16 16
 
17
-	/**
18
-	 * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be
19
-	 * used to download or reuse the file.
20
-	 */
21
-	public string $file_unique_id;
17
+    /**
18
+     * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be
19
+     * used to download or reuse the file.
20
+     */
21
+    public string $file_unique_id;
22 22
 
23
-	/** Video width as defined by sender */
24
-	public int $width;
23
+    /** Video width as defined by sender */
24
+    public int $width;
25 25
 
26
-	/** Video height as defined by sender */
27
-	public int $height;
26
+    /** Video height as defined by sender */
27
+    public int $height;
28 28
 
29
-	/** Duration of the video in seconds as defined by sender */
30
-	public int $duration;
29
+    /** Duration of the video in seconds as defined by sender */
30
+    public int $duration;
31 31
 
32
-	/** Optional. Animation thumbnail as defined by sender */
33
-	public photoSize $thumb;
32
+    /** Optional. Animation thumbnail as defined by sender */
33
+    public photoSize $thumb;
34 34
 
35
-	/** Optional. Original animation filename as defined by sender */
36
-	public string $file_name;
35
+    /** Optional. Original animation filename as defined by sender */
36
+    public string $file_name;
37 37
 
38
-	/** Optional. MIME type of the file as defined by sender */
39
-	public string $mime_type;
38
+    /** Optional. MIME type of the file as defined by sender */
39
+    public string $mime_type;
40 40
 
41
-	/** Optional. File size in bytes */
42
-	public int $file_size;
41
+    /** Optional. File size in bytes */
42
+    public int $file_size;
43 43
 
44 44
 
45
-	public function __construct(stdClass $update) {
46
-		parent::__construct($update, self::subs);
47
-	}
45
+    public function __construct(stdClass $update) {
46
+        parent::__construct($update, self::subs);
47
+    }
48 48
 }
Please login to merge, or discard this patch.