Passed
Push — main ( 4af278...3f64e8 )
by Miaad
01:24
created
types/webhookInfo.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
  * Contains information about the current status of a webhook.
9 9
  */
10 10
 class webhookInfo 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
-	/** Webhook URL, may be empty if webhook is not set up */
15
-	public string $url;
14
+    /** Webhook URL, may be empty if webhook is not set up */
15
+    public string $url;
16 16
 
17
-	/** True, if a custom certificate was provided for webhook certificate checks */
18
-	public bool $has_custom_certificate;
17
+    /** True, if a custom certificate was provided for webhook certificate checks */
18
+    public bool $has_custom_certificate;
19 19
 
20
-	/** Number of updates awaiting delivery */
21
-	public int $pending_update_count;
20
+    /** Number of updates awaiting delivery */
21
+    public int $pending_update_count;
22 22
 
23
-	/** Optional. Currently used webhook IP address */
24
-	public string $ip_address;
23
+    /** Optional. Currently used webhook IP address */
24
+    public string $ip_address;
25 25
 
26
-	/** Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook */
27
-	public int $last_error_date;
26
+    /** Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook */
27
+    public int $last_error_date;
28 28
 
29
-	/**
30
-	 * Optional. Error message in human-readable format for the most recent error that happened when trying to
31
-	 * deliver an update via webhook
32
-	 */
33
-	public string $last_error_message;
29
+    /**
30
+     * Optional. Error message in human-readable format for the most recent error that happened when trying to
31
+     * deliver an update via webhook
32
+     */
33
+    public string $last_error_message;
34 34
 
35
-	/**
36
-	 * Optional. Unix time of the most recent error that happened when trying to synchronize available updates with
37
-	 * Telegram datacenters
38
-	 */
39
-	public int $last_synchronization_error_date;
35
+    /**
36
+     * Optional. Unix time of the most recent error that happened when trying to synchronize available updates with
37
+     * Telegram datacenters
38
+     */
39
+    public int $last_synchronization_error_date;
40 40
 
41
-	/** Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery */
42
-	public int $max_connections;
41
+    /** Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery */
42
+    public int $max_connections;
43 43
 
44
-	/** Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member */
45
-	public array $allowed_updates;
44
+    /** Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member */
45
+    public array $allowed_updates;
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/videoChatParticipantsInvited.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 a service message about new members invited to a video chat.
9 9
  */
10 10
 class videoChatParticipantsInvited 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
-	/** New members that were invited to the video chat */
15
-	public array $users;
14
+    /** New members that were invited to the video chat */
15
+    public array $users;
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/messageEntity.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -8,36 +8,36 @@
 block discarded – undo
8 8
  * This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
9 9
  */
10 10
 class messageEntity 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
-	/**
15
-	 * Type of the entity. Currently, can be “mention” (username), “hashtag” (#hashtag), “cashtag”
16
-	 * ($USD), “bot_command” (/startjobs_bot), “url” (https://telegram.org), “email”
17
-	 * (do-not-replytelegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic
18
-	 * text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler
19
-	 * message), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text
20
-	 * URLs), “text_mention” (for users without usernames)
21
-	 */
22
-	public string $type;
14
+    /**
15
+     * Type of the entity. Currently, can be “mention” (username), “hashtag” (#hashtag), “cashtag”
16
+     * ($USD), “bot_command” (/startjobs_bot), “url” (https://telegram.org), “email”
17
+     * (do-not-replytelegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic
18
+     * text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler
19
+     * message), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text
20
+     * URLs), “text_mention” (for users without usernames)
21
+     */
22
+    public string $type;
23 23
 
24
-	/** Offset in UTF-16 code units to the start of the entity */
25
-	public int $offset;
24
+    /** Offset in UTF-16 code units to the start of the entity */
25
+    public int $offset;
26 26
 
27
-	/** Length of the entity in UTF-16 code units */
28
-	public int $length;
27
+    /** Length of the entity in UTF-16 code units */
28
+    public int $length;
29 29
 
30
-	/** Optional. For “text_link” only, url that will be opened after user taps on the text */
31
-	public string $url;
30
+    /** Optional. For “text_link” only, url that will be opened after user taps on the text */
31
+    public string $url;
32 32
 
33
-	/** Optional. For “text_mention” only, the mentioned user */
34
-	public user $user;
33
+    /** Optional. For “text_mention” only, the mentioned user */
34
+    public user $user;
35 35
 
36
-	/** Optional. For “pre” only, the programming language of the entity text */
37
-	public string $language;
36
+    /** Optional. For “pre” only, the programming language of the entity text */
37
+    public string $language;
38 38
 
39 39
 
40
-	public function __construct(stdClass $update) {
41
-		parent::__construct($update, self::subs);
42
-	}
40
+    public function __construct(stdClass $update) {
41
+        parent::__construct($update, self::subs);
42
+    }
43 43
 }
Please login to merge, or discard this patch.
types/voice.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
  * This object represents a voice note.
9 9
  */
10 10
 class voice 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
-	/** 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
-	/** Duration of the audio in seconds as defined by sender */
24
-	public int $duration;
23
+    /** Duration of the audio in seconds as defined by sender */
24
+    public int $duration;
25 25
 
26
-	/** Optional. MIME type of the file as defined by sender */
27
-	public string $mime_type;
26
+    /** Optional. MIME type of the file as defined by sender */
27
+    public string $mime_type;
28 28
 
29
-	/** Optional. File size in bytes */
30
-	public int $file_size;
29
+    /** Optional. File size in bytes */
30
+    public int $file_size;
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/passportElementErrorReverseSide.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -9,26 +9,26 @@
 block discarded – undo
9 9
  * reverse side of the document changes.
10 10
  */
11 11
 class passportElementErrorReverseSide 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
-	/** Error source, must be reverse_side */
16
-	public string $source;
15
+    /** Error source, must be reverse_side */
16
+    public string $source;
17 17
 
18
-	/**
19
-	 * The section of the user's Telegram Passport which has the issue, one of “driver_license”,
20
-	 * “identity_card”
21
-	 */
22
-	public string $type;
18
+    /**
19
+     * The section of the user's Telegram Passport which has the issue, one of “driver_license”,
20
+     * “identity_card”
21
+     */
22
+    public string $type;
23 23
 
24
-	/** Base64-encoded hash of the file with the reverse side of the document */
25
-	public string $file_hash;
24
+    /** Base64-encoded hash of the file with the reverse side of the document */
25
+    public string $file_hash;
26 26
 
27
-	/** Error message */
28
-	public string $message;
27
+    /** Error message */
28
+    public string $message;
29 29
 
30 30
 
31
-	public function __construct(stdClass $update) {
32
-		parent::__construct($update, self::subs);
33
-	}
31
+    public function __construct(stdClass $update) {
32
+        parent::__construct($update, self::subs);
33
+    }
34 34
 }
Please login to merge, or discard this patch.
types/user.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -8,42 +8,42 @@
 block discarded – undo
8 8
  * This object represents a Telegram user or bot.
9 9
  */
10 10
 class user 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
-	 * Unique identifier for this user or bot. This number may have more than 32 significant bits and some
16
-	 * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant
17
-	 * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
18
-	 */
19
-	public int $id;
14
+    /**
15
+     * Unique identifier for this user or bot. This number may have more than 32 significant bits and some
16
+     * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant
17
+     * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
18
+     */
19
+    public int $id;
20 20
 
21
-	/** True, if this user is a bot */
22
-	public bool $is_bot;
21
+    /** True, if this user is a bot */
22
+    public bool $is_bot;
23 23
 
24
-	/** User's or bot's first name */
25
-	public string $first_name;
24
+    /** User's or bot's first name */
25
+    public string $first_name;
26 26
 
27
-	/** Optional. User's or bot's last name */
28
-	public string $last_name;
27
+    /** Optional. User's or bot's last name */
28
+    public string $last_name;
29 29
 
30
-	/** Optional. User's or bot's username */
31
-	public string $username;
30
+    /** Optional. User's or bot's username */
31
+    public string $username;
32 32
 
33
-	/** Optional. IETF language tag of the user's language */
34
-	public string $language_code;
33
+    /** Optional. IETF language tag of the user's language */
34
+    public string $language_code;
35 35
 
36
-	/** Optional. True, if the bot can be invited to groups. Returned only in getMe. */
37
-	public bool $can_join_groups;
36
+    /** Optional. True, if the bot can be invited to groups. Returned only in getMe. */
37
+    public bool $can_join_groups;
38 38
 
39
-	/** Optional. True, if privacy mode is disabled for the bot. Returned only in getMe. */
40
-	public bool $can_read_all_group_messages;
39
+    /** Optional. True, if privacy mode is disabled for the bot. Returned only in getMe. */
40
+    public bool $can_read_all_group_messages;
41 41
 
42
-	/** Optional. True, if the bot supports inline queries. Returned only in getMe. */
43
-	public bool $supports_inline_queries;
42
+    /** Optional. True, if the bot supports inline queries. Returned only in getMe. */
43
+    public bool $supports_inline_queries;
44 44
 
45 45
 
46
-	public function __construct(stdClass $update) {
47
-		parent::__construct($update, self::subs);
48
-	}
46
+    public function __construct(stdClass $update) {
47
+        parent::__construct($update, self::subs);
48
+    }
49 49
 }
Please login to merge, or discard this patch.
types/passportElementError.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
  * by the user. It should be one of:
10 10
  */
11 11
 class passportElementError 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/menuButtonDefault.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
  * Describes that no specific value for the menu button was set.
9 9
  */
10 10
 class menuButtonDefault 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 button, must be default */
15
-	public string $type;
14
+    /** Type of the button, must be default */
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/passportElementErrorSelfie.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -9,26 +9,26 @@
 block discarded – undo
9 9
  * selfie changes.
10 10
  */
11 11
 class passportElementErrorSelfie 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
-	/** Error source, must be selfie */
16
-	public string $source;
15
+    /** Error source, must be selfie */
16
+    public string $source;
17 17
 
18
-	/**
19
-	 * The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”,
20
-	 * “identity_card”, “internal_passport”
21
-	 */
22
-	public string $type;
18
+    /**
19
+     * The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”,
20
+     * “identity_card”, “internal_passport”
21
+     */
22
+    public string $type;
23 23
 
24
-	/** Base64-encoded hash of the file with the selfie */
25
-	public string $file_hash;
24
+    /** Base64-encoded hash of the file with the selfie */
25
+    public string $file_hash;
26 26
 
27
-	/** Error message */
28
-	public string $message;
27
+    /** Error message */
28
+    public string $message;
29 29
 
30 30
 
31
-	public function __construct(stdClass $update) {
32
-		parent::__construct($update, self::subs);
33
-	}
31
+    public function __construct(stdClass $update) {
32
+        parent::__construct($update, self::subs);
33
+    }
34 34
 }
Please login to merge, or discard this patch.