Passed
Push — main ( 1fb942...104144 )
by Miaad
03:07 queued 01:24
created
src/types/callbackQuery.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,50 +25,50 @@
 block discarded – undo
25 25
      * Optional. Message with the callback button that originated the query. Note that message content and message
26 26
      * date will not be available if the message is too old
27 27
      */
28
-    public null|message $message = null;
28
+    public null | message $message = null;
29 29
 
30 30
     /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */
31
-    public null|string $inline_message_id = null;
31
+    public null | string $inline_message_id = null;
32 32
 
33 33
     /**
34 34
      * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent.
35 35
      * Useful for high scores in games.
36 36
      */
37
-    public null|string $chat_instance = null;
37
+    public null | string $chat_instance = null;
38 38
 
39 39
     /**
40 40
      * Optional. Data associated with the callback button. Be aware that the message originated the query can contain
41 41
      * no callback buttons with this data.
42 42
      */
43
-    public null|string $data = null;
43
+    public null | string $data = null;
44 44
 
45 45
     /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */
46
-    public null|string $game_short_name = null;
46
+    public null | string $game_short_name = null;
47 47
 
48 48
 
49
-    public function __construct(stdClass|null $object = null) {
49
+    public function __construct(stdClass | null $object = null) {
50 50
         if ($object != null) {
51 51
             parent::__construct($object, self::subs);
52 52
         }
53 53
     }
54 54
 
55
-    public function answer (string|null $text = null, bool|null $show_alert = null, string|null $url = null, int|null $cache_time = null): responseError|bool {
55
+    public function answer(string | null $text = null, bool | null $show_alert = null, string | null $url = null, int | null $cache_time = null): responseError | bool {
56 56
         return telegram::answerCallbackQuery($this->id, $text, $show_alert, $url, $cache_time);
57 57
     }
58 58
 
59
-    public function editText (string $text): message|responseError|bool {
59
+    public function editText(string $text): message | responseError | bool {
60 60
         return telegram::editMessageText($text);
61 61
     }
62 62
 
63
-    public function editCaption (string $text = ''): message|responseError|bool {
63
+    public function editCaption(string $text = ''): message | responseError | bool {
64 64
         return telegram::editMessageCaption(caption: $text);
65 65
     }
66 66
 
67
-    public function editKeyboard (inlineKeyboardMarkup|stdClass|array $reply_markup = null): message|responseError|bool {
67
+    public function editKeyboard(inlineKeyboardMarkup | stdClass | array $reply_markup = null): message | responseError | bool {
68 68
         return telegram::editMessageReplyMarkup(reply_markup: $reply_markup);
69 69
     }
70 70
 
71
-    public function editMedia (inputMedia|array|stdClass $media): message|responseError|bool {
71
+    public function editMedia(inputMedia | array | stdClass $media): message | responseError | bool {
72 72
         return telegram::editMessageMedia($media);
73 73
     }
74 74
 }
Please login to merge, or discard this patch.