Passed
Push — main ( b0527a...6fd7ec )
by Miaad
01:30
created
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/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/inputVenueMessageContent.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -8,38 +8,38 @@
 block discarded – undo
8 8
  * Represents the content of a venue message to be sent as the result of an inline query.
9 9
  */
10 10
 class inputVenueMessageContent 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
-	/** Latitude of the venue in degrees */
15
-	public float $latitude;
14
+    /** Latitude of the venue in degrees */
15
+    public float $latitude;
16 16
 
17
-	/** Longitude of the venue in degrees */
18
-	public float $longitude;
17
+    /** Longitude of the venue in degrees */
18
+    public float $longitude;
19 19
 
20
-	/** Name of the venue */
21
-	public string $title;
20
+    /** Name of the venue */
21
+    public string $title;
22 22
 
23
-	/** Address of the venue */
24
-	public string $address;
23
+    /** Address of the venue */
24
+    public string $address;
25 25
 
26
-	/** Optional. Foursquare identifier of the venue, if known */
27
-	public string $foursquare_id;
26
+    /** Optional. Foursquare identifier of the venue, if known */
27
+    public string $foursquare_id;
28 28
 
29
-	/**
30
-	 * Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,
31
-	 * “arts_entertainment/aquarium” or “food/icecream”.)
32
-	 */
33
-	public string $foursquare_type;
29
+    /**
30
+     * Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”,
31
+     * “arts_entertainment/aquarium” or “food/icecream”.)
32
+     */
33
+    public string $foursquare_type;
34 34
 
35
-	/** Optional. Google Places identifier of the venue */
36
-	public string $google_place_id;
35
+    /** Optional. Google Places identifier of the venue */
36
+    public string $google_place_id;
37 37
 
38
-	/** Optional. Google Places type of the venue. (See supported types.) */
39
-	public string $google_place_type;
38
+    /** Optional. Google Places type of the venue. (See supported types.) */
39
+    public string $google_place_type;
40 40
 
41 41
 
42
-	public function __construct(stdClass $update) {
43
-		parent::__construct($update, self::subs);
44
-	}
42
+    public function __construct(stdClass $update) {
43
+        parent::__construct($update, self::subs);
44
+    }
45 45
 }
Please login to merge, or discard this patch.
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/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/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/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.