Completed
Push — master ( 588ef8...23095d )
by
unknown
9s
created
src/Core/CoreBot.php 2 patches
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@
 block discarded – undo
462 462
 
463 463
         // Exec getUpdates
464 464
         $this->exec_curl_request('getUpdates?' . http_build_query($parameters)
465
-                                               . '&allowed_updates=' . $updates_string);
465
+                                                . '&allowed_updates=' . $updates_string);
466 466
 
467 467
     }
468 468
 
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/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.
src/Entities/InlineKeyboard.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,8 +129,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @param $buttons Buttons passed as inizialization.
34 34
      * @return The object created with the buttons passed.
35 35
      */
36
-    public function __construct(\PhpBotFramework\Bot &$bot = null,
36
+    public function __construct(\PhpBotFramework\Bot & $bot = null,
37 37
                                 array $buttons = array()) {
38 38
 
39 39
         // Get bot reference
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function getBackButton($json_serialized = true) {
211 211
 
212 212
         // Create the button
213
-        $inline_keyboard = [ 'inline_keyboard' =>
213
+        $inline_keyboard = ['inline_keyboard' =>
214 214
             [
215 215
                 [
216 216
                     [
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     public function getBackSkipKeyboard($json_serialized = true) {
244 244
 
245 245
         // Create the keyboard
246
-        $inline_keyboard = [ 'inline_keyboard' =>
246
+        $inline_keyboard = ['inline_keyboard' =>
247 247
             [
248 248
                 [
249 249
                     [
Please login to merge, or discard this patch.
src/Utilities/DatabaseHandler.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
      * \details Provides a simpler way to initialize a database connection 
9 9
      *  and create a PDO instance.
10 10
      * @param $params Parameters for initialize connection.
11
-     * @return True on success.
11
+     * @return boolean on success.
12 12
      */
13 13
     public function connect($params) {
14 14
         try {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /** \brief Add a user to the database.
68 68
      * \details Add a user to the database in Bot::$user_table table and Bot::$id_column column using Bot::$pdo connection.
69 69
      * @param $chat_id chat_id of the user to add.
70
-     * @return True on success.
70
+     * @return boolean on success.
71 71
      */
72 72
     public function addUser($chat_id) : bool {
73 73
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     }
27 27
 
28 28
     protected function mergeWithDefaults($params) {
29
-        $DEFAULTS = [ 'adapter' => 'mysql', 'host' => 'localhost' ];
29
+        $DEFAULTS = ['adapter' => 'mysql', 'host' => 'localhost'];
30 30
         return array_merge($DEFAULTS, $params);
31 31
     }
32 32
 
Please login to merge, or discard this patch.