Passed
Branch main (01a6e7)
by Miaad
01:27
created
types/forceReply.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,24 +10,24 @@
 block discarded – undo
10 10
  * create user-friendly step-by-step interfaces without having to sacrifice privacy mode.
11 11
  */
12 12
 class forceReply 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
-	/** Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply' */
17
-	public bool $force_reply;
16
+    /** Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply' */
17
+    public bool $force_reply;
18 18
 
19
-	/** Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters */
20
-	public string $input_field_placeholder;
19
+    /** Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters */
20
+    public string $input_field_placeholder;
21 21
 
22
-	/**
23
-	 * Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are
24
-	 * mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id),
25
-	 * sender of the original message.
26
-	 */
27
-	public bool $selective;
22
+    /**
23
+     * Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are
24
+     * mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id),
25
+     * sender of the original message.
26
+     */
27
+    public bool $selective;
28 28
 
29 29
 
30
-	public function __construct(stdClass $update) {
31
-		parent::__construct($update, self::subs);
32
-	}
30
+    public function __construct(stdClass $update) {
31
+        parent::__construct($update, self::subs);
32
+    }
33 33
 }
Please login to merge, or discard this patch.
types/inlineQueryResultVenue.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -9,62 +9,62 @@
 block discarded – undo
9 9
  * input_message_content to send a message with the specified content instead of the venue.
10 10
  */
11 11
 class inlineQueryResultVenue 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 venue */
19
-	public string $type;
18
+    /** Type of the result, must be venue */
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
-	/** Latitude of the venue location in degrees */
25
-	public float $latitude;
24
+    /** Latitude of the venue location in degrees */
25
+    public float $latitude;
26 26
 
27
-	/** Longitude of the venue location in degrees */
28
-	public float $longitude;
27
+    /** Longitude of the venue location in degrees */
28
+    public float $longitude;
29 29
 
30
-	/** Title of the venue */
31
-	public string $title;
30
+    /** Title of the venue */
31
+    public string $title;
32 32
 
33
-	/** Address of the venue */
34
-	public string $address;
33
+    /** Address of the venue */
34
+    public string $address;
35 35
 
36
-	/** Optional. Foursquare identifier of the venue if known */
37
-	public string $foursquare_id;
36
+    /** Optional. Foursquare identifier of the venue if known */
37
+    public string $foursquare_id;
38 38
 
39
-	/**
40
-	 * Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,
41
-	 * “arts_entertainment/aquarium” or “food/icecream”.)
42
-	 */
43
-	public string $foursquare_type;
39
+    /**
40
+     * Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,
41
+     * “arts_entertainment/aquarium” or “food/icecream”.)
42
+     */
43
+    public string $foursquare_type;
44 44
 
45
-	/** Optional. Google Places identifier of the venue */
46
-	public string $google_place_id;
45
+    /** Optional. Google Places identifier of the venue */
46
+    public string $google_place_id;
47 47
 
48
-	/** Optional. Google Places type of the venue. (See supported types.) */
49
-	public string $google_place_type;
48
+    /** Optional. Google Places type of the venue. (See supported types.) */
49
+    public string $google_place_type;
50 50
 
51
-	/** Optional. Inline keyboard attached to the message */
52
-	public inlineKeyboardMarkup $reply_markup;
51
+    /** Optional. Inline keyboard attached to the message */
52
+    public inlineKeyboardMarkup $reply_markup;
53 53
 
54
-	/** Optional. Content of the message to be sent instead of the venue */
55
-	public inputMessageContent $input_message_content;
54
+    /** Optional. Content of the message to be sent instead of the venue */
55
+    public inputMessageContent $input_message_content;
56 56
 
57
-	/** Optional. Url of the thumbnail for the result */
58
-	public string $thumb_url;
57
+    /** Optional. Url of the thumbnail for the result */
58
+    public string $thumb_url;
59 59
 
60
-	/** Optional. Thumbnail width */
61
-	public int $thumb_width;
60
+    /** Optional. Thumbnail width */
61
+    public int $thumb_width;
62 62
 
63
-	/** Optional. Thumbnail height */
64
-	public int $thumb_height;
63
+    /** Optional. Thumbnail height */
64
+    public int $thumb_height;
65 65
 
66 66
 
67
-	public function __construct(stdClass $update) {
68
-		parent::__construct($update, self::subs);
69
-	}
67
+    public function __construct(stdClass $update) {
68
+        parent::__construct($update, self::subs);
69
+    }
70 70
 }
Please login to merge, or discard this patch.
types/document.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -8,32 +8,32 @@
 block discarded – undo
8 8
  * This object represents a general file (as opposed to photos, voice messages and audio files).
9 9
  */
10 10
 class document 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
-	/** Optional. Document thumbnail as defined by sender */
24
-	public photoSize $thumb;
23
+    /** Optional. Document thumbnail as defined by sender */
24
+    public photoSize $thumb;
25 25
 
26
-	/** Optional. Original filename as defined by sender */
27
-	public string $file_name;
26
+    /** Optional. Original filename as defined by sender */
27
+    public string $file_name;
28 28
 
29
-	/** Optional. MIME type of the file as defined by sender */
30
-	public string $mime_type;
29
+    /** Optional. MIME type of the file as defined by sender */
30
+    public string $mime_type;
31 31
 
32
-	/** Optional. File size in bytes */
33
-	public int $file_size;
32
+    /** Optional. File size in bytes */
33
+    public int $file_size;
34 34
 
35 35
 
36
-	public function __construct(stdClass $update) {
37
-		parent::__construct($update, self::subs);
38
-	}
36
+    public function __construct(stdClass $update) {
37
+        parent::__construct($update, self::subs);
38
+    }
39 39
 }
Please login to merge, or discard this patch.
types/inlineQueryResultGif.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -10,59 +10,59 @@
 block discarded – undo
10 10
  * content instead of the animation.
11 11
  */
12 12
 class inlineQueryResultGif 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 gif */
20
-	public string $type;
19
+    /** Type of the result, must be gif */
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 URL for the GIF file. File size must not exceed 1MB */
26
-	public string $gif_url;
25
+    /** A valid URL for the GIF file. File size must not exceed 1MB */
26
+    public string $gif_url;
27 27
 
28
-	/** Optional. Width of the GIF */
29
-	public int $gif_width;
28
+    /** Optional. Width of the GIF */
29
+    public int $gif_width;
30 30
 
31
-	/** Optional. Height of the GIF */
32
-	public int $gif_height;
31
+    /** Optional. Height of the GIF */
32
+    public int $gif_height;
33 33
 
34
-	/** Optional. Duration of the GIF in seconds */
35
-	public int $gif_duration;
34
+    /** Optional. Duration of the GIF in seconds */
35
+    public int $gif_duration;
36 36
 
37
-	/** URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result */
38
-	public string $thumb_url;
37
+    /** URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result */
38
+    public string $thumb_url;
39 39
 
40
-	/**
41
-	 * Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”.
42
-	 * Defaults to “image/jpeg”
43
-	 */
44
-	public string $thumb_mime_type;
40
+    /**
41
+     * Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”.
42
+     * Defaults to “image/jpeg”
43
+     */
44
+    public string $thumb_mime_type;
45 45
 
46
-	/** Optional. Title for the result */
47
-	public string $title;
46
+    /** Optional. Title for the result */
47
+    public string $title;
48 48
 
49
-	/** Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing */
50
-	public string $caption;
49
+    /** Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing */
50
+    public string $caption;
51 51
 
52
-	/** Optional. Mode for parsing entities in the caption. See formatting options for more details. */
53
-	public string $parse_mode;
52
+    /** Optional. Mode for parsing entities in the caption. See formatting options for more details. */
53
+    public string $parse_mode;
54 54
 
55
-	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
56
-	public array $caption_entities;
55
+    /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
56
+    public array $caption_entities;
57 57
 
58
-	/** Optional. Inline keyboard attached to the message */
59
-	public inlineKeyboardMarkup $reply_markup;
58
+    /** Optional. Inline keyboard attached to the message */
59
+    public inlineKeyboardMarkup $reply_markup;
60 60
 
61
-	/** Optional. Content of the message to be sent instead of the GIF animation */
62
-	public inputMessageContent $input_message_content;
61
+    /** Optional. Content of the message to be sent instead of the GIF animation */
62
+    public inputMessageContent $input_message_content;
63 63
 
64 64
 
65
-	public function __construct(stdClass $update) {
66
-		parent::__construct($update, self::subs);
67
-	}
65
+    public function __construct(stdClass $update) {
66
+        parent::__construct($update, self::subs);
67
+    }
68 68
 }
Please login to merge, or discard this patch.
types/chatMemberMember.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 a chat member that has no additional privileges or restrictions.
9 9
  */
10 10
 class chatMemberMember 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
-	/** The member's status in the chat, always “member” */
15
-	public string $status;
14
+    /** The member's status in the chat, always “member” */
15
+    public string $status;
16 16
 
17
-	/** Information about the user */
18
-	public user $user;
17
+    /** Information about the user */
18
+    public user $user;
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/inputContactMessageContent.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 contact message to be sent as the result of an inline query.
9 9
  */
10 10
 class inputContactMessageContent 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
-	/** Contact's phone number */
15
-	public string $phone_number;
14
+    /** Contact's phone number */
15
+    public string $phone_number;
16 16
 
17
-	/** Contact's first name */
18
-	public string $first_name;
17
+    /** Contact's first name */
18
+    public string $first_name;
19 19
 
20
-	/** Optional. Contact's last name */
21
-	public string $last_name;
20
+    /** Optional. Contact's last name */
21
+    public string $last_name;
22 22
 
23
-	/** Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */
24
-	public string $vcard;
23
+    /** Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */
24
+    public string $vcard;
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/keyboardButton.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -10,41 +10,41 @@
 block discarded – undo
10 10
  * request_poll are mutually exclusive.
11 11
  */
12 12
 class keyboardButton extends types {
13
-	/** Keep all of properties which has sub properties */
14
-	private const subs = ['request_poll' => 'BPT\types\keyboardButtonPollType', 'web_app' => 'BPT\types\webAppInfo'];
15
-
16
-	/**
17
-	 * Text of the button. If none of the optional fields are used, it will be sent as a message when the button is
18
-	 * pressed
19
-	 */
20
-	public string $text;
21
-
22
-	/**
23
-	 * Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in
24
-	 * private chats only.
25
-	 */
26
-	public bool $request_contact;
27
-
28
-	/**
29
-	 * Optional. If True, the user's current location will be sent when the button is pressed. Available in private
30
-	 * chats only.
31
-	 */
32
-	public bool $request_location;
33
-
34
-	/**
35
-	 * Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is
36
-	 * pressed. Available in private chats only.
37
-	 */
38
-	public keyboardButtonPollType $request_poll;
39
-
40
-	/**
41
-	 * Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be
42
-	 * able to send a “web_app_data” service message. Available in private chats only.
43
-	 */
44
-	public webAppInfo $web_app;
45
-
46
-
47
-	public function __construct(stdClass $update) {
48
-		parent::__construct($update, self::subs);
49
-	}
13
+    /** Keep all of properties which has sub properties */
14
+    private const subs = ['request_poll' => 'BPT\types\keyboardButtonPollType', 'web_app' => 'BPT\types\webAppInfo'];
15
+
16
+    /**
17
+     * Text of the button. If none of the optional fields are used, it will be sent as a message when the button is
18
+     * pressed
19
+     */
20
+    public string $text;
21
+
22
+    /**
23
+     * Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in
24
+     * private chats only.
25
+     */
26
+    public bool $request_contact;
27
+
28
+    /**
29
+     * Optional. If True, the user's current location will be sent when the button is pressed. Available in private
30
+     * chats only.
31
+     */
32
+    public bool $request_location;
33
+
34
+    /**
35
+     * Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is
36
+     * pressed. Available in private chats only.
37
+     */
38
+    public keyboardButtonPollType $request_poll;
39
+
40
+    /**
41
+     * Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be
42
+     * able to send a “web_app_data” service message. Available in private chats only.
43
+     */
44
+    public webAppInfo $web_app;
45
+
46
+
47
+    public function __construct(stdClass $update) {
48
+        parent::__construct($update, self::subs);
49
+    }
50 50
 }
Please login to merge, or discard this patch.
types/botCommandScopeAllPrivateChats.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 private chats.
9 9
  */
10 10
 class botCommandScopeAllPrivateChats 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_private_chats */
15
-	public string $type;
14
+    /** Scope type, must be all_private_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/inlineQueryResultLocation.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -9,62 +9,62 @@
 block discarded – undo
9 9
  * input_message_content to send a message with the specified content instead of the location.
10 10
  */
11 11
 class inlineQueryResultLocation 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 location */
19
-	public string $type;
18
+    /** Type of the result, must be location */
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
-	/** Location latitude in degrees */
25
-	public float $latitude;
24
+    /** Location latitude in degrees */
25
+    public float $latitude;
26 26
 
27
-	/** Location longitude in degrees */
28
-	public float $longitude;
27
+    /** Location longitude in degrees */
28
+    public float $longitude;
29 29
 
30
-	/** Location title */
31
-	public string $title;
30
+    /** Location title */
31
+    public string $title;
32 32
 
33
-	/** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */
34
-	public float $horizontal_accuracy;
33
+    /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */
34
+    public float $horizontal_accuracy;
35 35
 
36
-	/** Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. */
37
-	public int $live_period;
36
+    /** Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. */
37
+    public int $live_period;
38 38
 
39
-	/**
40
-	 * Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360
41
-	 * if specified.
42
-	 */
43
-	public int $heading;
39
+    /**
40
+     * Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360
41
+     * if specified.
42
+     */
43
+    public int $heading;
44 44
 
45
-	/**
46
-	 * Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member,
47
-	 * in meters. Must be between 1 and 100000 if specified.
48
-	 */
49
-	public int $proximity_alert_radius;
45
+    /**
46
+     * Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member,
47
+     * in meters. Must be between 1 and 100000 if specified.
48
+     */
49
+    public int $proximity_alert_radius;
50 50
 
51
-	/** Optional. Inline keyboard attached to the message */
52
-	public inlineKeyboardMarkup $reply_markup;
51
+    /** Optional. Inline keyboard attached to the message */
52
+    public inlineKeyboardMarkup $reply_markup;
53 53
 
54
-	/** Optional. Content of the message to be sent instead of the location */
55
-	public inputMessageContent $input_message_content;
54
+    /** Optional. Content of the message to be sent instead of the location */
55
+    public inputMessageContent $input_message_content;
56 56
 
57
-	/** Optional. Url of the thumbnail for the result */
58
-	public string $thumb_url;
57
+    /** Optional. Url of the thumbnail for the result */
58
+    public string $thumb_url;
59 59
 
60
-	/** Optional. Thumbnail width */
61
-	public int $thumb_width;
60
+    /** Optional. Thumbnail width */
61
+    public int $thumb_width;
62 62
 
63
-	/** Optional. Thumbnail height */
64
-	public int $thumb_height;
63
+    /** Optional. Thumbnail height */
64
+    public int $thumb_height;
65 65
 
66 66
 
67
-	public function __construct(stdClass $update) {
68
-		parent::__construct($update, self::subs);
69
-	}
67
+    public function __construct(stdClass $update) {
68
+        parent::__construct($update, self::subs);
69
+    }
70 70
 }
Please login to merge, or discard this patch.