@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * @param $default_language <i>Optional</i>. Default language to return in case of errors. |
| 85 | 85 | * @param $expiring_time <i>Optional</i>. Set the expiring time for the language on |
| 86 | 86 | * redis each time it is took from the sql database. |
| 87 | - * @return Language for the current user, $default_language on errors. |
|
| 87 | + * @return string for the current user, $default_language on errors. |
|
| 88 | 88 | */ |
| 89 | 89 | public function getLanguageRedis($default_language = 'en', $expiring_time = '86400') : string |
| 90 | 90 | { |
@@ -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 | |
@@ -18,8 +18,6 @@ |
||
| 18 | 18 | |
| 19 | 19 | namespace PhpBotFramework\Test; |
| 20 | 20 | |
| 21 | -use PhpBotFramework\Entities\Message; |
|
| 22 | - |
|
| 23 | 21 | /* \class FakeUpdate |
| 24 | 22 | * \brief Contains abstract methods for processing fake updates. |
| 25 | 23 | */ |