Passed
Push — main ( 4af278...3f64e8 )
by Miaad
01:24
created
types/passportData.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
  * Contains information about Telegram Passport data shared with the bot by the user.
9 9
  */
10 10
 class passportData extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['credentials' => 'BPT\types\encryptedCredentials'];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['credentials' => 'BPT\types\encryptedCredentials'];
13 13
 
14
-	/** Array with information about documents and other Telegram Passport elements that was shared with the bot */
15
-	public array $data;
14
+    /** Array with information about documents and other Telegram Passport elements that was shared with the bot */
15
+    public array $data;
16 16
 
17
-	/** Encrypted credentials required to decrypt the data */
18
-	public encryptedCredentials $credentials;
17
+    /** Encrypted credentials required to decrypt the data */
18
+    public encryptedCredentials $credentials;
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/pollAnswer.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
  * This object represents an answer of a user in a non-anonymous poll.
9 9
  */
10 10
 class pollAnswer extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['user' => 'BPT\types\user'];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['user' => 'BPT\types\user'];
13 13
 
14
-	/** Unique poll identifier */
15
-	public string $poll_id;
14
+    /** Unique poll identifier */
15
+    public string $poll_id;
16 16
 
17
-	/** The user, who changed the answer to the poll */
18
-	public user $user;
17
+    /** The user, who changed the answer to the poll */
18
+    public user $user;
19 19
 
20
-	/** 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote. */
21
-	public array $option_ids;
20
+    /** 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote. */
21
+    public array $option_ids;
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/sticker.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -8,47 +8,47 @@
 block discarded – undo
8 8
  * This object represents a sticker.
9 9
  */
10 10
 class sticker extends types {
11
-	/** Keep all of properties which has sub properties */
12
-	private const subs = ['thumb' => 'BPT\types\photoSize', 'mask_position' => 'BPT\types\maskPosition'];
11
+    /** Keep all of properties which has sub properties */
12
+    private const subs = ['thumb' => 'BPT\types\photoSize', 'mask_position' => 'BPT\types\maskPosition'];
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
-	/** Sticker width */
24
-	public int $width;
23
+    /** Sticker width */
24
+    public int $width;
25 25
 
26
-	/** Sticker height */
27
-	public int $height;
26
+    /** Sticker height */
27
+    public int $height;
28 28
 
29
-	/** True, if the sticker is animated */
30
-	public bool $is_animated;
29
+    /** True, if the sticker is animated */
30
+    public bool $is_animated;
31 31
 
32
-	/** True, if the sticker is a video sticker */
33
-	public bool $is_video;
32
+    /** True, if the sticker is a video sticker */
33
+    public bool $is_video;
34 34
 
35
-	/** Optional. Sticker thumbnail in the .WEBP or .JPG format */
36
-	public photoSize $thumb;
35
+    /** Optional. Sticker thumbnail in the .WEBP or .JPG format */
36
+    public photoSize $thumb;
37 37
 
38
-	/** Optional. Emoji associated with the sticker */
39
-	public string $emoji;
38
+    /** Optional. Emoji associated with the sticker */
39
+    public string $emoji;
40 40
 
41
-	/** Optional. Name of the sticker set to which the sticker belongs */
42
-	public string $set_name;
41
+    /** Optional. Name of the sticker set to which the sticker belongs */
42
+    public string $set_name;
43 43
 
44
-	/** Optional. For mask stickers, the position where the mask should be placed */
45
-	public maskPosition $mask_position;
44
+    /** Optional. For mask stickers, the position where the mask should be placed */
45
+    public maskPosition $mask_position;
46 46
 
47
-	/** Optional. File size in bytes */
48
-	public int $file_size;
47
+    /** Optional. File size in bytes */
48
+    public int $file_size;
49 49
 
50 50
 
51
-	public function __construct(stdClass $update) {
52
-		parent::__construct($update, self::subs);
53
-	}
51
+    public function __construct(stdClass $update) {
52
+        parent::__construct($update, self::subs);
53
+    }
54 54
 }
Please login to merge, or discard this patch.
types/sentWebAppMessage.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,17 +8,17 @@
 block discarded – undo
8 8
  * Contains information about an inline message sent by a Web App on behalf of a user.
9 9
  */
10 10
 class sentWebAppMessage 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
-	/**
15
-	 * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the
16
-	 * message.
17
-	 */
18
-	public string $inline_message_id;
14
+    /**
15
+     * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the
16
+     * message.
17
+     */
18
+    public string $inline_message_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/replyKeyboardMarkup.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -9,39 +9,39 @@
 block discarded – undo
9 9
  * examples).
10 10
  */
11 11
 class replyKeyboardMarkup extends types {
12
-	/** Keep all of properties which has sub properties */
13
-	private const subs = [];
14
-
15
-	/** Array of button rows, each represented by an Array of KeyboardButton objects */
16
-	public array $keyboard;
17
-
18
-	/**
19
-	 * Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller
20
-	 * if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the
21
-	 * same height as the app's standard keyboard.
22
-	 */
23
-	public bool $resize_keyboard;
24
-
25
-	/**
26
-	 * Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be
27
-	 * available, but clients will automatically display the usual letter-keyboard in the chat – the user can press
28
-	 * a special button in the input field to see the custom keyboard again. Defaults to false.
29
-	 */
30
-	public bool $one_time_keyboard;
31
-
32
-	/** Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters */
33
-	public string $input_field_placeholder;
34
-
35
-	/**
36
-	 * Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that
37
-	 * are mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id),
38
-	 * sender of the original message.Example: A user requests to change the bot's language, bot replies to the
39
-	 * request with a keyboard to select the new language. Other users in the group don't see the keyboard.
40
-	 */
41
-	public bool $selective;
42
-
43
-
44
-	public function __construct(stdClass $update) {
45
-		parent::__construct($update, self::subs);
46
-	}
12
+    /** Keep all of properties which has sub properties */
13
+    private const subs = [];
14
+
15
+    /** Array of button rows, each represented by an Array of KeyboardButton objects */
16
+    public array $keyboard;
17
+
18
+    /**
19
+     * Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller
20
+     * if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the
21
+     * same height as the app's standard keyboard.
22
+     */
23
+    public bool $resize_keyboard;
24
+
25
+    /**
26
+     * Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be
27
+     * available, but clients will automatically display the usual letter-keyboard in the chat – the user can press
28
+     * a special button in the input field to see the custom keyboard again. Defaults to false.
29
+     */
30
+    public bool $one_time_keyboard;
31
+
32
+    /** Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters */
33
+    public string $input_field_placeholder;
34
+
35
+    /**
36
+     * Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that
37
+     * are mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id),
38
+     * sender of the original message.Example: A user requests to change the bot's language, bot replies to the
39
+     * request with a keyboard to select the new language. Other users in the group don't see the keyboard.
40
+     */
41
+    public bool $selective;
42
+
43
+
44
+    public function __construct(stdClass $update) {
45
+        parent::__construct($update, self::subs);
46
+    }
47 47
 }
Please login to merge, or discard this patch.
types/poll.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -8,56 +8,56 @@
 block discarded – undo
8 8
  * This object contains information about a poll.
9 9
  */
10 10
 class poll 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
-	/** Unique poll identifier */
15
-	public string $id;
14
+    /** Unique poll identifier */
15
+    public string $id;
16 16
 
17
-	/** Poll question, 1-300 characters */
18
-	public string $question;
17
+    /** Poll question, 1-300 characters */
18
+    public string $question;
19 19
 
20
-	/** List of poll options */
21
-	public array $options;
20
+    /** List of poll options */
21
+    public array $options;
22 22
 
23
-	/** Total number of users that voted in the poll */
24
-	public int $total_voter_count;
23
+    /** Total number of users that voted in the poll */
24
+    public int $total_voter_count;
25 25
 
26
-	/** True, if the poll is closed */
27
-	public bool $is_closed;
26
+    /** True, if the poll is closed */
27
+    public bool $is_closed;
28 28
 
29
-	/** True, if the poll is anonymous */
30
-	public bool $is_anonymous;
29
+    /** True, if the poll is anonymous */
30
+    public bool $is_anonymous;
31 31
 
32
-	/** Poll type, currently can be “regular” or “quiz” */
33
-	public string $type;
32
+    /** Poll type, currently can be “regular” or “quiz” */
33
+    public string $type;
34 34
 
35
-	/** True, if the poll allows multiple answers */
36
-	public bool $allows_multiple_answers;
35
+    /** True, if the poll allows multiple answers */
36
+    public bool $allows_multiple_answers;
37 37
 
38
-	/**
39
-	 * Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which
40
-	 * are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.
41
-	 */
42
-	public int $correct_option_id;
38
+    /**
39
+     * Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which
40
+     * are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.
41
+     */
42
+    public int $correct_option_id;
43 43
 
44
-	/**
45
-	 * Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style
46
-	 * poll, 0-200 characters
47
-	 */
48
-	public string $explanation;
44
+    /**
45
+     * Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style
46
+     * poll, 0-200 characters
47
+     */
48
+    public string $explanation;
49 49
 
50
-	/** Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation */
51
-	public array $explanation_entities;
50
+    /** Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation */
51
+    public array $explanation_entities;
52 52
 
53
-	/** Optional. Amount of time in seconds the poll will be active after creation */
54
-	public int $open_period;
53
+    /** Optional. Amount of time in seconds the poll will be active after creation */
54
+    public int $open_period;
55 55
 
56
-	/** Optional. Point in time (Unix timestamp) when the poll will be automatically closed */
57
-	public int $close_date;
56
+    /** Optional. Point in time (Unix timestamp) when the poll will be automatically closed */
57
+    public int $close_date;
58 58
 
59 59
 
60
-	public function __construct(stdClass $update) {
61
-		parent::__construct($update, self::subs);
62
-	}
60
+    public function __construct(stdClass $update) {
61
+        parent::__construct($update, self::subs);
62
+    }
63 63
 }
Please login to merge, or discard this patch.