Completed
Push — master ( 608853...8236a2 )
by Irfaq
04:28 queued 02:14
created
src/Laravel/TelegramServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     /**
102 102
      * Get the services provided by the provider.
103 103
      *
104
-     * @return array
104
+     * @return string[]
105 105
      */
106 106
     public function provides()
107 107
     {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Telegram\Bot\Laravel;
4 4
 
5
-use Telegram\Bot\Api;
6
-use Telegram\Bot\BotsManager;
7
-use Illuminate\Support\ServiceProvider;
8 5
 use Illuminate\Contracts\Foundation\Application;
9
-use Laravel\Lumen\Application as LumenApplication;
10 6
 use Illuminate\Foundation\Application as LaravelApplication;
7
+use Illuminate\Support\ServiceProvider;
8
+use Laravel\Lumen\Application as LumenApplication;
9
+use Telegram\Bot\Api;
10
+use Telegram\Bot\BotsManager;
11 11
 
12 12
 /**
13 13
  * Class TelegramServiceProvider.
Please login to merge, or discard this patch.
src/Api.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
 use Telegram\Bot\Commands\CommandBus;
7 7
 use Telegram\Bot\Exceptions\TelegramSDKException;
8 8
 use Telegram\Bot\FileUpload\InputFile;
9
+use Telegram\Bot\Helpers\Emojify;
9 10
 use Telegram\Bot\HttpClients\GuzzleHttpClient;
10 11
 use Telegram\Bot\HttpClients\HttpClientInterface;
12
+use Telegram\Bot\Keyboard\Keyboard;
11 13
 use Telegram\Bot\Objects\File;
12 14
 use Telegram\Bot\Objects\Message;
13 15
 use Telegram\Bot\Objects\UnknownObject;
14 16
 use Telegram\Bot\Objects\Update;
15 17
 use Telegram\Bot\Objects\User;
16 18
 use Telegram\Bot\Objects\UserProfilePhotos;
17
-use Telegram\Bot\Keyboard\Keyboard;
18
-use Telegram\Bot\Helpers\Emojify;
19 19
 
20 20
 /**
21 21
  * Class Api.
Please login to merge, or discard this patch.
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
      * @var bool       $params ['disable_web_page_preview']
816 816
      * @var string     $params ['reply_markup']
817 817
      *
818
-     * @return TelegramResponse
818
+     * @return Message
819 819
      */
820 820
     public function editMessageText(array $params)
821 821
     {
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
      * @var string     $params ['caption']
848 848
      * @var string     $params ['reply_markup']
849 849
      *
850
-     * @return TelegramResponse
850
+     * @return Message
851 851
      */
852 852
     public function editMessageCaption(array $params)
853 853
     {
@@ -877,7 +877,7 @@  discard block
 block discarded – undo
877 877
      * @var string     $params ['inline_message_id']
878 878
      * @var string     $params ['reply_markup']
879 879
      *
880
-     * @return TelegramResponse
880
+     * @return Message
881 881
      */
882 882
     public function editMessageReplyMarkup(array $params)
883 883
     {
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
      *
907 907
      * @throws TelegramSDKException
908 908
      *
909
-     * @return TelegramResponse
909
+     * @return Message
910 910
      */
911 911
     public function setWebhook(array $params)
912 912
     {
@@ -1008,7 +1008,7 @@  discard block
 block discarded – undo
1008 1008
      * @var bool    $params ['one_time_keyboard']
1009 1009
      * @var bool    $params ['selective']
1010 1010
      *
1011
-     * @return string
1011
+     * @return Keyboard
1012 1012
      */
1013 1013
     public function replyKeyboardMarkup(array $params)
1014 1014
     {
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
      * @var bool    $params ['hide_keyboard']
1036 1036
      * @var bool    $params ['selective']
1037 1037
      *
1038
-     * @return string
1038
+     * @return Keyboard
1039 1039
      */
1040 1040
     public static function replyKeyboardHide(array $params = [])
1041 1041
     {
@@ -1062,7 +1062,7 @@  discard block
 block discarded – undo
1062 1062
      * @var bool    $params ['force_reply']
1063 1063
      * @var bool    $params ['selective']
1064 1064
      *
1065
-     * @return string
1065
+     * @return Keyboard
1066 1066
      */
1067 1067
     public static function forceReply(array $params = [])
1068 1068
     {
@@ -1155,7 +1155,7 @@  discard block
 block discarded – undo
1155 1155
     /**
1156 1156
      * Detect Message Type Based on Update or Message Object.
1157 1157
      *
1158
-     * @param Update|Message $object
1158
+     * @param Message $object
1159 1159
      *
1160 1160
      * @return string|null
1161 1161
      */
@@ -1251,7 +1251,7 @@  discard block
 block discarded – undo
1251 1251
      * Used primarily for file uploads.
1252 1252
      *
1253 1253
      * @param string $endpoint
1254
-     * @param array  $params
1254
+     * @param string  $params
1255 1255
      *
1256 1256
      * @throws TelegramSDKException
1257 1257
      *
@@ -1458,7 +1458,7 @@  discard block
 block discarded – undo
1458 1458
      * @var string|null $params ['switch_pm_text']
1459 1459
      * @var string|null $params ['switch_pm_parameter']
1460 1460
      *
1461
-     * @return bool
1461
+     * @return TelegramResponse
1462 1462
      */
1463 1463
     public function answerInlineQuery(array $params = [])
1464 1464
     {
Please login to merge, or discard this patch.