Completed
Push — master ( 528803...01e7e6 )
by Danilo
03:49
created
src/Core/Bot.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     /**
83 83
      * \brief Get the text of the message, if set (for updates of type "message").
84
-     * @return Text of the message, empty string if not set.
84
+     * @return string of the message, empty string if not set.
85 85
      */
86 86
     public function getMessageText() : string {
87 87
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
     /**
99 99
      * \brief Get the data of callback query, if set (for updates of type "callback_query").
100
-     * @return Data of the callback query, empty string if not set.
100
+     * @return string of the callback query, empty string if not set.
101 101
      */
102 102
     public function getCallbackData() : string {
103 103
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     /**
115 115
      * \brief Get the query received from the inline query (for updates of type "inline_query").
116
-     * @return The query sent by the user, throw exception if the current update is not an inline query.
116
+     * @return string query sent by the user, throw exception if the current update is not an inline query.
117 117
      */
118 118
     public function getInlineQuery() : string {
119 119
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * \details Set $chat_id for each update, $text, $data and $query are set for each update that contains them.
170 170
      * It also calls commands for each updates, before process methods.
171 171
      * @param $update Reference to the update received.
172
-     * @return The id of the update processed.
172
+     * @return integer id of the update processed.
173 173
      */
174 174
     public function processUpdate(array $update) : int {
175 175
 
Please login to merge, or discard this patch.
src/Core/CoreBot.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Entities/InlineQueryResults.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Utilities/BotState.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      * \brief Get current user status from redis and set it in status variable.
89 89
      * \details Throw exception if redis connection is missing.
90 90
      * @param $default_status <i>Optional</i>. The default status to return in case there is no status for the current user.
91
-     * @return The status for the current user, $default_status if missing.
91
+     * @return integer status for the current user, $default_status if missing.
92 92
      */
93 93
     public function getStatus(int $default_status = -1) : int {
94 94
 
Please login to merge, or discard this patch.
src/Utilities/DatabaseHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /** \brief Add a user to the database.
20 20
      * \details Add a user to the database in Bot::$user_table table and Bot::$id_column column using Bot::$pdo connection.
21 21
      * @param $chat_id chat_id of the user to add.
22
-     * @return True on success.
22
+     * @return boolean on success.
23 23
      */
24 24
     public function addUser($chat_id) : bool {
25 25
 
Please login to merge, or discard this patch.
src/Utilities/Localization.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      * It also change $language parameter of the bot to the language returned.
87 87
      * @param $default_language <i>Optional</i>. Default language to return in case of errors.
88 88
      * @param $expiring_time <i>Optional</i>. Set the expiring time for the language on redis each time it is took from the sql database.
89
-     * @return Language for the current user, $default_language on errors.
89
+     * @return string for the current user, $default_language on errors.
90 90
      */
91 91
     public function getLanguageRedis($default_language = 'en', $expiring_time = '86400') : string {
92 92
 
Please login to merge, or discard this patch.