Completed
Pull Request — master (#481)
by Armando
04:27 queued 02:02
created
src/Commands/AdminCommands/SendtochannelCommand.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * Command execute method
56 56
      *
57
-     * @return \Longman\TelegramBot\Entities\ServerResponse|mixed
57
+     * @return \Longman\TelegramBot\Entities\ServerResponse
58 58
      * @throws \Longman\TelegramBot\Exception\TelegramException
59 59
      */
60 60
     public function execute()
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      *
333 333
      * @todo Why send just to the first found channel?
334 334
      *
335
-     * @return mixed
335
+     * @return \Longman\TelegramBot\Entities\ServerResponse
336 336
      * @throws \Longman\TelegramBot\Exception\TelegramException
337 337
      */
338 338
     public function executeNoDb()
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@
 block discarded – undo
10 10
 
11 11
 namespace Longman\TelegramBot\Commands\AdminCommands;
12 12
 
13
-use Longman\TelegramBot\Entities\Keyboard;
14
-use Longman\TelegramBot\Request;
15
-use Longman\TelegramBot\Conversation;
16 13
 use Longman\TelegramBot\Commands\AdminCommand;
14
+use Longman\TelegramBot\Conversation;
15
+use Longman\TelegramBot\Entities\Keyboard;
17 16
 use Longman\TelegramBot\Entities\Message;
18 17
 use Longman\TelegramBot\Exception\TelegramException;
18
+use Longman\TelegramBot\Request;
19 19
 
20 20
 class SendtochannelCommand extends AdminCommand
21 21
 {
Please login to merge, or discard this patch.
src/DB.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@
 block discarded – undo
270 270
      * @todo Find a better way, as json_* functions are very heavy
271 271
      *
272 272
      * @param array|null $entities
273
-     * @param mixed      $default
273
+     * @param string|null      $default
274 274
      *
275 275
      * @return mixed
276 276
      */
Please login to merge, or discard this patch.
src/Request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
      *
258 258
      * @param \Longman\TelegramBot\Entities\File $file
259 259
      *
260
-     * @return boolean
260
+     * @return boolean|string
261 261
      * @throws \Longman\TelegramBot\Exception\TelegramException
262 262
      */
263 263
     public static function downloadFile(File $file)
Please login to merge, or discard this patch.
src/Telegram.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
      *
809 809
      * This is kept for backwards compatibility!
810 810
      *
811
-     * @return mixed
811
+     * @return ServerResponse
812 812
      * @throws \Longman\TelegramBot\Exception\TelegramException
813 813
      */
814 814
     public function unsetWebhook()
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
     /**
820 820
      * Delete any assigned webhook
821 821
      *
822
-     * @return mixed
822
+     * @return ServerResponse
823 823
      * @throws \Longman\TelegramBot\Exception\TelegramException
824 824
      */
825 825
     public function deleteWebhook()
Please login to merge, or discard this patch.