Completed
Pull Request — master (#51)
by
unknown
04:15
created
src/BasicBot.php 1 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/Core/CoreBot.php 1 patch
Doc Comments   +4 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
      */
@@ -525,6 +524,9 @@  discard block
 block discarded – undo
525 524
         return $this->checkRequestError($response);
526 525
     }
527 526
 
527
+    /**
528
+     * @param \Psr\Http\Message\ResponseInterface $response
529
+     */
528 530
     public function checkRequestError($response)
529 531
     {
530 532
         $http_code = $response->getStatusCode();
Please login to merge, or discard this patch.
src/Commands/CommandHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 
94 94
     /**
95 95
      * \brief Add various commands at once.
96
-     * @param ...BasicCommand $commands The commands to add.
96
+     * @param BasicCommand[] $commands The commands to add.
97 97
      */
98 98
     public function addCommands(BasicCommand ...$commands)
99 99
     {
Please login to merge, or discard this patch.
src/Entities/CallbackQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * \brief Get data parameter if it is set.
45
-     * @return string $data if set or empty string otherwise.
45
+     * @return Message|null $data if set or empty string otherwise.
46 46
      */
47 47
     public function getData()
48 48
     {
Please login to merge, or discard this patch.
src/Entities/InlineQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * \brief Get result's query.
39
-     * @return string $query If set or <code>null</code> if empty.
39
+     * @return Message|null $query If set or <code>null</code> if empty.
40 40
      */
41 41
     public function getQuery()
42 42
     {
Please login to merge, or discard this patch.
src/Entities/Message.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * \brief Get text parameter if it is set.
37
-     * @return string If set or <code>null</code> otherwise.
37
+     * @return Message|null If set or <code>null</code> otherwise.
38 38
      */
39 39
     public function getText()
40 40
     {
Please login to merge, or discard this patch.