@@ -100,7 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | // Exec getUpdates |
| 102 | 102 | $this->execRequest('getUpdates?' . http_build_query($parameters) |
| 103 | - . '&allowed_updates=' . json_encode($allowed_updates)); |
|
| 103 | + . '&allowed_updates=' . json_encode($allowed_updates)); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** @} */ |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | // Get the language from the bot |
| 55 | 55 | $sth = $this->pdo->prepare('SELECT language FROM ' . $this->user_table . ' WHERE ' |
| 56 | - . $this->id_column . ' = :chat_id'); |
|
| 56 | + . $this->id_column . ' = :chat_id'); |
|
| 57 | 57 | $sth->bindParam(':chat_id', $this->_chat_id); |
| 58 | 58 | |
| 59 | 59 | try { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | // Update the language in the database |
| 121 | 121 | $sth = $this->pdo->prepare('UPDATE ' . $this->user_table . ' SET language = :language WHERE ' |
| 122 | - . $this->id_column . ' = :id'); |
|
| 122 | + . $this->id_column . ' = :id'); |
|
| 123 | 123 | $sth->bindParam(':language', $language); |
| 124 | 124 | $sth->bindParam(':id', $this->_chat_id); |
| 125 | 125 | |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * \brief (<i>Internal</i>) Sort an array based on <code>prior</code> index value. |
|
| 89 | + * \brief (<i>Internal</i>) Sort an array based on <code>prior</code> index value. |
|
| 90 | 90 | * @param array $a First array. |
| 91 | 91 | * @param array $b Second array. |
| 92 | 92 | * @return int 1 If $a > $b, -1 if $a < $b, 0 otherwise. |
@@ -138,8 +138,8 @@ |
||
| 138 | 138 | { |
| 139 | 139 | // If the user has already added a button in this row |
| 140 | 140 | if ($this->column != 0) { |
| 141 | - // Change row |
|
| 142 | - $this->changeRow(); |
|
| 141 | + // Change row |
|
| 142 | + $this->changeRow(); |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | // Add buttons to the next row |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $offset = $this->getUpdateOffsetRedis(); |
| 96 | 96 | $this->initCommands(); |
| 97 | 97 | |
| 98 | - // Process all updates received |
|
| 98 | + // Process all updates received |
|
| 99 | 99 | while (true) { |
| 100 | 100 | $updates = $this->getUpdates($offset, $limit, $timeout); |
| 101 | 101 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * @see CoreBot::sendMessage |
| 93 | 93 | */ |
| 94 | 94 | public function broadcastMessage(string $text, string $reply_markup = null, string $parse_mode = 'HTML', |
| 95 | - bool $disable_web_preview = true, bool $disable_notification = false) |
|
| 95 | + bool $disable_web_preview = true, bool $disable_notification = false) |
|
| 96 | 96 | { |
| 97 | 97 | |
| 98 | 98 | if (!isset($this->pdo)) { |