Completed
Push — master ( dbf8ac...73cd1f )
by Danilo
03:45 queued 01:07
created
src/Database/LongPolling.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
         $this->initCommands();
77 77
 
78
-         // Process all updates received
78
+            // Process all updates received
79 79
         while (true) {
80 80
 
81 81
             $updates = $this->getUpdates($offset, $limit, $timeout);
Please login to merge, or discard this patch.
src/Core/BaseBot.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace PhpBotFramework\Core;
4 4
 
5 5
 use PhpBotFramework\Exceptions\BotException;
6
-
7 6
 use PhpBotFramework\Entities\Message;
8 7
 use PhpBotFramework\Entities\CallbackQuery;
9 8
 use PhpBotFramework\Entities\ChosenInlineResult;
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,6 @@
 block discarded – undo
232 232
      * \brief Called every time a post get edited in the channel where the bot is in.
233 233
      * \details Override it to script the bot answer for each post edited  in a channel.
234 234
      * <code>$chat_id</code> set inside of this function.
235
-     * @param Message $post The message edited in the channel.
236 235
      */
237 236
     protected function processEditedChannelPost(Message $edited_post)
238 237
     {
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
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * @param $reply_markup Inline keyboard object (Not JSON serialized, use getArray from InlineKeyboard class).
63 63
      * @param $parse_mode <i>Optional</i>. Formattation of the message.
64 64
      * @param $disable_web_preview <i>Optional</i>. Disables link previews for links in the sent message
65
-     * @return Id the the article added
65
+     * @return integer the the article added
66 66
      */
67 67
     public function newArticle($title, $message_text, $description = '', array $reply_markup = null, $parse_mode = 'HTML', $disable_web_preview = false)
68 68
     {
Please login to merge, or discard this patch.
src/Core/Updates.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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
     /** @} */
Please login to merge, or discard this patch.
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.
src/Localization/Button.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @param array $buttons Buttons passed as inizialization.
40 40
      */
41 41
     public function __construct(
42
-        CoreBot &$bot,
42
+        CoreBot & $bot,
43 43
         array $buttons = array()
44 44
     ) {
45 45
         // Set bot reference
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function getBackButton($json_serialized = true)
59 59
     {
60 60
         // Create the button
61
-        $inline_keyboard = [ 'inline_keyboard' =>
61
+        $inline_keyboard = ['inline_keyboard' =>
62 62
             [
63 63
                 [
64 64
                     [
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function getBackSkipKeyboard($json_serialized = true)
87 87
     {
88 88
         // Create the keyboard
89
-        $inline_keyboard = [ 'inline_keyboard' =>
89
+        $inline_keyboard = ['inline_keyboard' =>
90 90
             [
91 91
                 [
92 92
                     [
Please login to merge, or discard this patch.
src/Database/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     protected function addDefaultValue(array $params) : array
79 79
     {
80
-        static $defaults = [ 'adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost' ];
80
+        static $defaults = ['adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost'];
81 81
         return array_merge($defaults, $params);
82 82
     }
83 83
 
Please login to merge, or discard this patch.
src/Commands/CommandHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.