Passed
Branch main (01a6e7)
by Miaad
01:27
created
types/invoice.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
  * This object contains basic information about an invoice.
9 9
  */
10 10
 class invoice 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
-	/** Product name */
15
-	public string $title;
14
+    /** Product name */
15
+    public string $title;
16 16
 
17
-	/** Product description */
18
-	public string $description;
17
+    /** Product description */
18
+    public string $description;
19 19
 
20
-	/** Unique bot deep-linking parameter that can be used to generate this invoice */
21
-	public string $start_parameter;
20
+    /** Unique bot deep-linking parameter that can be used to generate this invoice */
21
+    public string $start_parameter;
22 22
 
23
-	/** Three-letter ISO 4217 currency code */
24
-	public string $currency;
23
+    /** Three-letter ISO 4217 currency code */
24
+    public string $currency;
25 25
 
26
-	/**
27
-	 * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$
28
-	 * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the
29
-	 * decimal point for each currency (2 for the majority of currencies).
30
-	 */
31
-	public int $total_amount;
26
+    /**
27
+     * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$
28
+     * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the
29
+     * decimal point for each currency (2 for the majority of currencies).
30
+     */
31
+    public int $total_amount;
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/inlineQueryResultCachedDocument.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -10,44 +10,44 @@
 block discarded – undo
10 10
  * specified content instead of the file.
11 11
  */
12 12
 class inlineQueryResultCachedDocument extends types {
13
-	/** Keep all of properties which has sub properties */
14
-	private const subs = [
15
-		'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
16
-		'input_message_content' => 'BPT\types\inputMessageContent',
17
-	];
13
+    /** Keep all of properties which has sub properties */
14
+    private const subs = [
15
+        'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
16
+        'input_message_content' => 'BPT\types\inputMessageContent',
17
+    ];
18 18
 
19
-	/** Type of the result, must be document */
20
-	public string $type;
19
+    /** Type of the result, must be document */
20
+    public string $type;
21 21
 
22
-	/** Unique identifier for this result, 1-64 bytes */
23
-	public string $id;
22
+    /** Unique identifier for this result, 1-64 bytes */
23
+    public string $id;
24 24
 
25
-	/** Title for the result */
26
-	public string $title;
25
+    /** Title for the result */
26
+    public string $title;
27 27
 
28
-	/** A valid file identifier for the file */
29
-	public string $document_file_id;
28
+    /** A valid file identifier for the file */
29
+    public string $document_file_id;
30 30
 
31
-	/** Optional. Short description of the result */
32
-	public string $description;
31
+    /** Optional. Short description of the result */
32
+    public string $description;
33 33
 
34
-	/** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */
35
-	public string $caption;
34
+    /** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */
35
+    public string $caption;
36 36
 
37
-	/** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */
38
-	public string $parse_mode;
37
+    /** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */
38
+    public string $parse_mode;
39 39
 
40
-	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
41
-	public array $caption_entities;
40
+    /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
41
+    public array $caption_entities;
42 42
 
43
-	/** Optional. Inline keyboard attached to the message */
44
-	public inlineKeyboardMarkup $reply_markup;
43
+    /** Optional. Inline keyboard attached to the message */
44
+    public inlineKeyboardMarkup $reply_markup;
45 45
 
46
-	/** Optional. Content of the message to be sent instead of the file */
47
-	public inputMessageContent $input_message_content;
46
+    /** Optional. Content of the message to be sent instead of the file */
47
+    public inputMessageContent $input_message_content;
48 48
 
49 49
 
50
-	public function __construct(stdClass $update) {
51
-		parent::__construct($update, self::subs);
52
-	}
50
+    public function __construct(stdClass $update) {
51
+        parent::__construct($update, self::subs);
52
+    }
53 53
 }
Please login to merge, or discard this patch.
types/inlineKeyboardMarkup.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
  * This object represents an inline keyboard that appears right next to the message it belongs to.
9 9
  */
10 10
 class inlineKeyboardMarkup 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
-	/** Array of button rows, each represented by an Array of InlineKeyboardButton objects */
15
-	public array $inline_keyboard;
14
+    /** Array of button rows, each represented by an Array of InlineKeyboardButton objects */
15
+    public array $inline_keyboard;
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/inlineQueryResultCachedVideo.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -10,44 +10,44 @@
 block discarded – undo
10 10
  * specified content instead of the video.
11 11
  */
12 12
 class inlineQueryResultCachedVideo extends types {
13
-	/** Keep all of properties which has sub properties */
14
-	private const subs = [
15
-		'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
16
-		'input_message_content' => 'BPT\types\inputMessageContent',
17
-	];
13
+    /** Keep all of properties which has sub properties */
14
+    private const subs = [
15
+        'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
16
+        'input_message_content' => 'BPT\types\inputMessageContent',
17
+    ];
18 18
 
19
-	/** Type of the result, must be video */
20
-	public string $type;
19
+    /** Type of the result, must be video */
20
+    public string $type;
21 21
 
22
-	/** Unique identifier for this result, 1-64 bytes */
23
-	public string $id;
22
+    /** Unique identifier for this result, 1-64 bytes */
23
+    public string $id;
24 24
 
25
-	/** A valid file identifier for the video file */
26
-	public string $video_file_id;
25
+    /** A valid file identifier for the video file */
26
+    public string $video_file_id;
27 27
 
28
-	/** Title for the result */
29
-	public string $title;
28
+    /** Title for the result */
29
+    public string $title;
30 30
 
31
-	/** Optional. Short description of the result */
32
-	public string $description;
31
+    /** Optional. Short description of the result */
32
+    public string $description;
33 33
 
34
-	/** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */
35
-	public string $caption;
34
+    /** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */
35
+    public string $caption;
36 36
 
37
-	/** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */
38
-	public string $parse_mode;
37
+    /** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */
38
+    public string $parse_mode;
39 39
 
40
-	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
41
-	public array $caption_entities;
40
+    /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
41
+    public array $caption_entities;
42 42
 
43
-	/** Optional. Inline keyboard attached to the message */
44
-	public inlineKeyboardMarkup $reply_markup;
43
+    /** Optional. Inline keyboard attached to the message */
44
+    public inlineKeyboardMarkup $reply_markup;
45 45
 
46
-	/** Optional. Content of the message to be sent instead of the video */
47
-	public inputMessageContent $input_message_content;
46
+    /** Optional. Content of the message to be sent instead of the video */
47
+    public inputMessageContent $input_message_content;
48 48
 
49 49
 
50
-	public function __construct(stdClass $update) {
51
-		parent::__construct($update, self::subs);
52
-	}
50
+    public function __construct(stdClass $update) {
51
+        parent::__construct($update, self::subs);
52
+    }
53 53
 }
Please login to merge, or discard this patch.
types/encryptedCredentials.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -9,23 +9,23 @@
 block discarded – undo
9 9
  * Documentation for a complete description of the data decryption and authentication processes.
10 10
  */
11 11
 class encryptedCredentials 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
-	/**
16
-	 * Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for
17
-	 * EncryptedPassportElement decryption and authentication
18
-	 */
19
-	public string $data;
15
+    /**
16
+     * Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for
17
+     * EncryptedPassportElement decryption and authentication
18
+     */
19
+    public string $data;
20 20
 
21
-	/** Base64-encoded data hash for data authentication */
22
-	public string $hash;
21
+    /** Base64-encoded data hash for data authentication */
22
+    public string $hash;
23 23
 
24
-	/** Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption */
25
-	public string $secret;
24
+    /** Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption */
25
+    public string $secret;
26 26
 
27 27
 
28
-	public function __construct(stdClass $update) {
29
-		parent::__construct($update, self::subs);
30
-	}
28
+    public function __construct(stdClass $update) {
29
+        parent::__construct($update, self::subs);
30
+    }
31 31
 }
Please login to merge, or discard this patch.
types/inputMedia.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
  * This object represents the content of a media message to be sent. It should be one of
9 9
  */
10 10
 class inputMedia 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
-	public function __construct(stdClass $update) {
15
-		parent::__construct($update, self::subs);
16
-	}
14
+    public function __construct(stdClass $update) {
15
+        parent::__construct($update, self::subs);
16
+    }
17 17
 }
Please login to merge, or discard this patch.
types/inlineQueryResultContact.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -9,47 +9,47 @@
 block discarded – undo
9 9
  * you can use input_message_content to send a message with the specified content instead of the contact.
10 10
  */
11 11
 class inlineQueryResultContact extends types {
12
-	/** Keep all of properties which has sub properties */
13
-	private const subs = [
14
-		'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
15
-		'input_message_content' => 'BPT\types\inputMessageContent',
16
-	];
12
+    /** Keep all of properties which has sub properties */
13
+    private const subs = [
14
+        'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
15
+        'input_message_content' => 'BPT\types\inputMessageContent',
16
+    ];
17 17
 
18
-	/** Type of the result, must be contact */
19
-	public string $type;
18
+    /** Type of the result, must be contact */
19
+    public string $type;
20 20
 
21
-	/** Unique identifier for this result, 1-64 Bytes */
22
-	public string $id;
21
+    /** Unique identifier for this result, 1-64 Bytes */
22
+    public string $id;
23 23
 
24
-	/** Contact's phone number */
25
-	public string $phone_number;
24
+    /** Contact's phone number */
25
+    public string $phone_number;
26 26
 
27
-	/** Contact's first name */
28
-	public string $first_name;
27
+    /** Contact's first name */
28
+    public string $first_name;
29 29
 
30
-	/** Optional. Contact's last name */
31
-	public string $last_name;
30
+    /** Optional. Contact's last name */
31
+    public string $last_name;
32 32
 
33
-	/** Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */
34
-	public string $vcard;
33
+    /** Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */
34
+    public string $vcard;
35 35
 
36
-	/** Optional. Inline keyboard attached to the message */
37
-	public inlineKeyboardMarkup $reply_markup;
36
+    /** Optional. Inline keyboard attached to the message */
37
+    public inlineKeyboardMarkup $reply_markup;
38 38
 
39
-	/** Optional. Content of the message to be sent instead of the contact */
40
-	public inputMessageContent $input_message_content;
39
+    /** Optional. Content of the message to be sent instead of the contact */
40
+    public inputMessageContent $input_message_content;
41 41
 
42
-	/** Optional. Url of the thumbnail for the result */
43
-	public string $thumb_url;
42
+    /** Optional. Url of the thumbnail for the result */
43
+    public string $thumb_url;
44 44
 
45
-	/** Optional. Thumbnail width */
46
-	public int $thumb_width;
45
+    /** Optional. Thumbnail width */
46
+    public int $thumb_width;
47 47
 
48
-	/** Optional. Thumbnail height */
49
-	public int $thumb_height;
48
+    /** Optional. Thumbnail height */
49
+    public int $thumb_height;
50 50
 
51 51
 
52
-	public function __construct(stdClass $update) {
53
-		parent::__construct($update, self::subs);
54
-	}
52
+    public function __construct(stdClass $update) {
53
+        parent::__construct($update, self::subs);
54
+    }
55 55
 }
Please login to merge, or discard this patch.
types/chat.php 1 patch
Indentation   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -8,94 +8,94 @@
 block discarded – undo
8 8
  * This object represents a chat.
9 9
  */
10 10
 class chat extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = [
13
-		'photo' => 'BPT\types\chatPhoto',
14
-		'pinned_message' => 'BPT\types\message',
15
-		'permissions' => 'BPT\types\chatPermissions',
16
-		'location' => 'BPT\types\chatLocation',
17
-	];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = [
13
+        'photo' => 'BPT\types\chatPhoto',
14
+        'pinned_message' => 'BPT\types\message',
15
+        'permissions' => 'BPT\types\chatPermissions',
16
+        'location' => 'BPT\types\chatLocation',
17
+    ];
18 18
 
19
-	/**
20
-	 * Unique identifier for this chat. This number may have more than 32 significant bits and some programming
21
-	 * languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a
22
-	 * signed 64-bit integer or double-precision float type are safe for storing this identifier.
23
-	 */
24
-	public int $id;
19
+    /**
20
+     * Unique identifier for this chat. This number may have more than 32 significant bits and some programming
21
+     * languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a
22
+     * signed 64-bit integer or double-precision float type are safe for storing this identifier.
23
+     */
24
+    public int $id;
25 25
 
26
-	/** Type of chat, can be either “private”, “group”, “supergroup” or “channel” */
27
-	public string $type;
26
+    /** Type of chat, can be either “private”, “group”, “supergroup” or “channel” */
27
+    public string $type;
28 28
 
29
-	/** Optional. Title, for supergroups, channels and group chats */
30
-	public string $title;
29
+    /** Optional. Title, for supergroups, channels and group chats */
30
+    public string $title;
31 31
 
32
-	/** Optional. Username, for private chats, supergroups and channels if available */
33
-	public string $username;
32
+    /** Optional. Username, for private chats, supergroups and channels if available */
33
+    public string $username;
34 34
 
35
-	/** Optional. First name of the other party in a private chat */
36
-	public string $first_name;
35
+    /** Optional. First name of the other party in a private chat */
36
+    public string $first_name;
37 37
 
38
-	/** Optional. Last name of the other party in a private chat */
39
-	public string $last_name;
38
+    /** Optional. Last name of the other party in a private chat */
39
+    public string $last_name;
40 40
 
41
-	/** Optional. Chat photo. Returned only in getChat. */
42
-	public chatPhoto $photo;
41
+    /** Optional. Chat photo. Returned only in getChat. */
42
+    public chatPhoto $photo;
43 43
 
44
-	/** Optional. Bio of the other party in a private chat. Returned only in getChat. */
45
-	public string $bio;
44
+    /** Optional. Bio of the other party in a private chat. Returned only in getChat. */
45
+    public string $bio;
46 46
 
47
-	/**
48
-	 * Optional. True, if privacy settings of the other party in the private chat allows to use
49
-	 * tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.
50
-	 */
51
-	public bool $has_private_forwards;
47
+    /**
48
+     * Optional. True, if privacy settings of the other party in the private chat allows to use
49
+     * tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.
50
+     */
51
+    public bool $has_private_forwards;
52 52
 
53
-	/** Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. */
54
-	public string $description;
53
+    /** Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. */
54
+    public string $description;
55 55
 
56
-	/** Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. */
57
-	public string $invite_link;
56
+    /** Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. */
57
+    public string $invite_link;
58 58
 
59
-	/** Optional. The most recent pinned message (by sending date). Returned only in getChat. */
60
-	public message $pinned_message;
59
+    /** Optional. The most recent pinned message (by sending date). Returned only in getChat. */
60
+    public message $pinned_message;
61 61
 
62
-	/** Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. */
63
-	public chatPermissions $permissions;
62
+    /** Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. */
63
+    public chatPermissions $permissions;
64 64
 
65
-	/**
66
-	 * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged
67
-	 * user; in seconds. Returned only in getChat.
68
-	 */
69
-	public int $slow_mode_delay;
65
+    /**
66
+     * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged
67
+     * user; in seconds. Returned only in getChat.
68
+     */
69
+    public int $slow_mode_delay;
70 70
 
71
-	/**
72
-	 * Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds.
73
-	 * Returned only in getChat.
74
-	 */
75
-	public int $message_auto_delete_time;
71
+    /**
72
+     * Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds.
73
+     * Returned only in getChat.
74
+     */
75
+    public int $message_auto_delete_time;
76 76
 
77
-	/** Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. */
78
-	public bool $has_protected_content;
77
+    /** Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. */
78
+    public bool $has_protected_content;
79 79
 
80
-	/** Optional. For supergroups, name of group sticker set. Returned only in getChat. */
81
-	public string $sticker_set_name;
80
+    /** Optional. For supergroups, name of group sticker set. Returned only in getChat. */
81
+    public string $sticker_set_name;
82 82
 
83
-	/** Optional. True, if the bot can change the group sticker set. Returned only in getChat. */
84
-	public bool $can_set_sticker_set;
83
+    /** Optional. True, if the bot can change the group sticker set. Returned only in getChat. */
84
+    public bool $can_set_sticker_set;
85 85
 
86
-	/**
87
-	 * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice
88
-	 * versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming
89
-	 * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed
90
-	 * 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.
91
-	 */
92
-	public int $linked_chat_id;
86
+    /**
87
+     * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice
88
+     * versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming
89
+     * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed
90
+     * 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.
91
+     */
92
+    public int $linked_chat_id;
93 93
 
94
-	/** Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. */
95
-	public chatLocation $location;
94
+    /** Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. */
95
+    public chatLocation $location;
96 96
 
97 97
 
98
-	public function __construct(stdClass $update) {
99
-		parent::__construct($update, self::subs);
100
-	}
98
+    public function __construct(stdClass $update) {
99
+        parent::__construct($update, self::subs);
100
+    }
101 101
 }
Please login to merge, or discard this patch.
types/chatMember.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
  * are supported:
10 10
  */
11 11
 class chatMember 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.