Completed
Push — master ( ad08f4...213d65 )
by Danilo
04:24
created
src/Core/CoreBot.php 2 patches
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
     /**
401 401
      * \brief Set current chat ID.
402 402
      * \details Change the chat ID on which the bot acts.
403
-     * @param $chat_id The new chat ID to set.
403
+     * @param string $chat_id The new chat ID to set.
404 404
      */
405 405
     public function setChatID($chat_id)
406 406
     {
@@ -460,7 +460,6 @@  discard block
 block discarded – undo
460 460
      * \brief Process an API method by taking method and parameter.
461 461
      * \details optionally create a object of $class class name with the response as constructor param.
462 462
      * @param string $method Method to call.
463
-     * @param array $param Parameter for the method.
464 463
      * @param string $class Class name of the object to create using response.
465 464
      * @return mixed Response or object of $class class name.
466 465
      */
@@ -533,6 +532,9 @@  discard block
 block discarded – undo
533 532
         return $this->checkRequestError($response);
534 533
     }
535 534
 
535
+    /**
536
+     * @param \Psr\Http\Message\ResponseInterface $response
537
+     */
536 538
     public function checkRequestError($response)
537 539
     {
538 540
         $http_code = $response->getStatusCode();
Please login to merge, or discard this patch.
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.
src/Core/Send.php 1 patch
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
 trait Send
Please login to merge, or discard this patch.