Completed
Push — master ( 47719d...a5b475 )
by
unknown
03:14
created
src/Localization/Language.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Test/FakeUpdate.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,6 @@
 block discarded – undo
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
  */
Please login to merge, or discard this patch.