Completed
Push — master ( 077e0b...eb2792 )
by
unknown
18:36
created
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/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/Core/CoreBot.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,7 @@
 block discarded – undo
19 19
 namespace PhpBotFramework\Core;
20 20
 
21 21
 use PhpBotFramework\Exceptions\BotException;
22
-
23 22
 use PhpBotFramework\Entities\File as TelegramFile;
24
-
25 23
 use PhpBotFramework\Entities\InlineKeyboard;
26 24
 
27 25
 /**
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -324,27 +324,27 @@
 block discarded – undo
324 324
         Chat;
325 325
 
326 326
     /** @internal
327
-      * \brief Chat_id of the user that interacted with the bot. */
327
+     * \brief Chat_id of the user that interacted with the bot. */
328 328
     protected $_chat_id;
329 329
 
330 330
     /** @internal
331
-      * \brief Bot id. */
331
+     * \brief Bot id. */
332 332
     protected $_bot_id;
333 333
 
334 334
     /** @internal
335
-      * \brief API endpoint (containing $token). */
335
+     * \brief API endpoint (containing $token). */
336 336
     protected $_api_url;
337 337
 
338 338
     /** @internal
339
-      * \brief Implements interface for execute HTTP requests. */
339
+     * \brief Implements interface for execute HTTP requests. */
340 340
     public $_http;
341 341
 
342 342
     /** @internal
343
-      * \brief Object of class PhpBotFramework\Entities\File that contain a path or resource to a file that has to be sent using Telegram API Methods. */
343
+     * \brief Object of class PhpBotFramework\Entities\File that contain a path or resource to a file that has to be sent using Telegram API Methods. */
344 344
     protected $_file;
345 345
 
346 346
     /** \@internal
347
-      * brief Contains parameters of the next request. */
347
+     * brief Contains parameters of the next request. */
348 348
     protected $parameters;
349 349
 
350 350
     /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
     /**
392 392
      * \brief Set current chat ID.
393 393
      * \details Change the chat ID on which the bot acts.
394
-     * @param $chat_id The new chat ID to set.
394
+     * @param string $chat_id The new chat ID to set.
395 395
      */
396 396
     public function setChatID($chat_id)
397 397
     {
@@ -447,7 +447,6 @@  discard block
 block discarded – undo
447 447
      * brief Process an API method by taking method and parameter.
448 448
      * \details optionally create a object of $class class name with the response as constructor param.
449 449
      * @param string $method Method to call.
450
-     * @param array $param Parameter for the method.
451 450
      * @param string $class Class name of the object to create using response.
452 451
      * @return mixed Response or object of $class class name.
453 452
      */
Please login to merge, or discard this patch.
src/Utilities/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public static function paginateItems(
47 47
         $items,
48 48
         int $index,
49
-        Keyboard &$keyboard,
49
+        Keyboard & $keyboard,
50 50
         callable $format_item,
51 51
         int $item_per_page = 3,
52 52
         string $prefix = 'list',
Please login to merge, or discard this patch.
src/Database/LongPolling.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         $offset = $this->getUpdateOffsetRedis($offset_key);
96 96
         $this->initCommands();
97 97
 
98
-         // Process all updates received
98
+            // Process all updates received
99 99
         while (true) {
100 100
             $updates = $this->getUpdates($offset, $limit, $timeout);
101 101
 
Please login to merge, or discard this patch.
examples/EchoBot/Bot.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 require_once '../../vendor/autoload.php';
10 10
 
11 11
 class EchoBot extends PhpBotFramework\Bot {
12
-  // Override processMessage in order to send user the same message it give us.
13
-  protected function processMessage($message) {
12
+    // Override processMessage in order to send user the same message it give us.
13
+    protected function processMessage($message) {
14 14
     $this->sendMessage($message['text']);
15
-  }
15
+    }
16 16
 }
17 17
 
18 18
 $bot = new EchoBot('YOUR_BOT_TOKEN');
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
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param CoreBot $bot References to the bot that's using the inline keyboard.
39 39
      * @param array $buttons Buttons passed as inizialization.
40 40
      */
41
-    public function __construct(CoreBot &$bot, array $buttons = array())
41
+    public function __construct(CoreBot & $bot, array $buttons = array())
42 42
     {
43 43
         $this->bot = $bot;
44 44
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function getBackButton(bool $json_serialized = true)
56 56
     {
57 57
         // Create the button
58
-        $inline_keyboard = [ 'inline_keyboard' =>
58
+        $inline_keyboard = ['inline_keyboard' =>
59 59
             [
60 60
                 [
61 61
                     [
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     public function getBackSkipKeyboard(bool $json_serialized = true)
91 91
     {
92 92
         // Create the keyboard
93
-        $inline_keyboard = [ 'inline_keyboard' =>
93
+        $inline_keyboard = ['inline_keyboard' =>
94 94
             [
95 95
                 [
96 96
                     [
Please login to merge, or discard this patch.
src/BasicBot.php 3 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 namespace PhpBotFramework;
20 20
 
21 21
 use PhpBotFramework\Exceptions\BotException;
22
-
23 22
 use PhpBotFramework\Entities\Message;
24 23
 use PhpBotFramework\Entities\CallbackQuery;
25 24
 use PhpBotFramework\Entities\ChosenInlineResult;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     use \PhpBotFramework\Commands\CommandHandler;
38 38
 
39 39
     /** @internal
40
-      * \brief True if the bot is using webhook? */
40
+     * \brief True if the bot is using webhook? */
41 41
     protected $_is_webhook;
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
src/Core/Send.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 namespace PhpBotFramework\Core;
20 20
 
21 21
 use PhpBotFramework\Entities\Message;
22
-
23 22
 use PhpBotFramework\Entities\File as TelegramFile;
24 23
 
25 24
 /**
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     abstract protected function checkCurrentFile(TelegramFile $file);
36 36
 
37 37
     /** @internal
38
-      * \brief Contains parameters of the next request. */
38
+     * \brief Contains parameters of the next request. */
39 39
     protected $parameters;
40 40
 
41 41
     /**
Please login to merge, or discard this patch.