@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | * - <code>record_audio</code> or <code>upload_audio</code> for audio files |
544 | 544 | * - <code>upload_document</code> for general files |
545 | 545 | * - <code>find_location</code> for location data |
546 | - * @return True on success. |
|
546 | + * @return boolean on success. |
|
547 | 547 | */ |
548 | 548 | public function sendChatAction(string $action) : bool { |
549 | 549 | |
@@ -726,7 +726,7 @@ discard block |
||
726 | 726 | */ |
727 | 727 | |
728 | 728 | /** \brief Core function to execute url request. |
729 | - * @param $url The url to call using the curl session. |
|
729 | + * @param string $url The url to call using the curl session. |
|
730 | 730 | * @return Url response, false on error. |
731 | 731 | */ |
732 | 732 | protected function exec_curl_request($url) { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * @param $reply_markup Inline keyboard object (Not JSON serialized, use getArray from InlineKeyboard class). |
41 | 41 | * @param $parse_mode <i>Optional</i>. Formattation of the message. |
42 | 42 | * @param $disable_web_preview <i>Optional</i>. Disables link previews for links in the sent message |
43 | - * @return Id the the article added |
|
43 | + * @return integer the the article added |
|
44 | 44 | */ |
45 | 45 | public function newArticle($title, $message_text, $description = '', array $reply_markup = null, $parse_mode = 'HTML', $disable_web_preview = false) { |
46 | 46 |
@@ -129,8 +129,8 @@ |
||
129 | 129 | // If the user has already added a button in this row |
130 | 130 | if ($this->column != 0) { |
131 | 131 | |
132 | - // Change row |
|
133 | - $this->changeRow(); |
|
132 | + // Change row |
|
133 | + $this->changeRow(); |
|
134 | 134 | |
135 | 135 | } |
136 | 136 |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * @param $buttons Buttons passed as inizialization. |
34 | 34 | * @return The object created with the buttons passed. |
35 | 35 | */ |
36 | - public function __construct(Bot &$bot = null, array $buttons = array()) { |
|
36 | + public function __construct(Bot & $bot = null, array $buttons = array()) { |
|
37 | 37 | |
38 | 38 | // Get bot reference |
39 | 39 | $this->bot = $bot; |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | public function getBackButton($json_serialized = true) { |
210 | 210 | |
211 | 211 | // Create the button |
212 | - $inline_keyboard = [ 'inline_keyboard' => |
|
212 | + $inline_keyboard = ['inline_keyboard' => |
|
213 | 213 | [ |
214 | 214 | [ |
215 | 215 | [ |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | public function getBackSkipKeyboard($json_serialized = true) { |
243 | 243 | |
244 | 244 | // Create the keyboard |
245 | - $inline_keyboard = [ 'inline_keyboard' => |
|
245 | + $inline_keyboard = ['inline_keyboard' => |
|
246 | 246 | [ |
247 | 247 | [ |
248 | 248 | [ |