Completed
Push — master ( 4f81cd...7d8814 )
by Irfaq
14:25 queued 11:56
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
8 8
 use Telegram\Bot\FileUpload\InputFile;
9 9
 use Telegram\Bot\HttpClients\GuzzleHttpClient;
10 10
 use Telegram\Bot\HttpClients\HttpClientInterface;
11
+use Telegram\Bot\Keyboard\Keyboard;
11 12
 use Telegram\Bot\Objects\File;
12 13
 use Telegram\Bot\Objects\Message;
13 14
 use Telegram\Bot\Objects\UnknownObject;
14 15
 use Telegram\Bot\Objects\Update;
15 16
 use Telegram\Bot\Objects\User;
16 17
 use Telegram\Bot\Objects\UserProfilePhotos;
17
-use Telegram\Bot\Keyboard\Keyboard;
18 18
 
19 19
 /**
20 20
  * Class Api.
Please login to merge, or discard this patch.
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
      *
801 801
      * @var string|int  $params ['chat_id'] Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
802 802
      *
803
-     * @return Chat
803
+     * @return TelegramResponse
804 804
      */
805 805
     public function getChat(array $params)
806 806
     {
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
      *
823 823
      * @var string|int  $params ['chat_id'] Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername);
824 824
      *
825
-     * @return ChatMember[]
825
+     * @return TelegramResponse
826 826
      */
827 827
     public function getChatAdministrators(array $params)
828 828
     {
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
      *
845 845
      * @var string|int  $params ['chat_id'] Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
846 846
      *
847
-     * @return int
847
+     * @return TelegramResponse
848 848
      */
849 849
     public function getChatMembersCount(array $params)
850 850
     {
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
      * @var bool       $params ['disable_web_page_preview']
879 879
      * @var string     $params ['reply_markup']
880 880
      *
881
-     * @return TelegramResponse
881
+     * @return Message
882 882
      */
883 883
     public function editMessageText(array $params)
884 884
     {
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
      * @var string     $params ['caption']
911 911
      * @var string     $params ['reply_markup']
912 912
      *
913
-     * @return TelegramResponse
913
+     * @return Message
914 914
      */
915 915
     public function editMessageCaption(array $params)
916 916
     {
@@ -940,7 +940,7 @@  discard block
 block discarded – undo
940 940
      * @var string     $params ['inline_message_id']
941 941
      * @var string     $params ['reply_markup']
942 942
      *
943
-     * @return TelegramResponse
943
+     * @return Message
944 944
      */
945 945
     public function editMessageReplyMarkup(array $params)
946 946
     {
@@ -976,7 +976,7 @@  discard block
 block discarded – undo
976 976
      * @var string|null $params ['switch_pm_text']
977 977
      * @var string|null $params ['switch_pm_parameter']
978 978
      *
979
-     * @return bool
979
+     * @return TelegramResponse
980 980
      */
981 981
     public function answerInlineQuery(array $params = [])
982 982
     {
@@ -1007,7 +1007,7 @@  discard block
 block discarded – undo
1007 1007
      *
1008 1008
      * @throws TelegramSDKException
1009 1009
      *
1010
-     * @return TelegramResponse
1010
+     * @return Message
1011 1011
      */
1012 1012
     public function setWebhook(array $params)
1013 1013
     {
@@ -1123,7 +1123,7 @@  discard block
 block discarded – undo
1123 1123
      * @var bool    $params ['one_time_keyboard']
1124 1124
      * @var bool    $params ['selective']
1125 1125
      *
1126
-     * @return string
1126
+     * @return Keyboard
1127 1127
      */
1128 1128
     public function replyKeyboardMarkup(array $params)
1129 1129
     {
@@ -1150,7 +1150,7 @@  discard block
 block discarded – undo
1150 1150
      * @var bool    $params ['hide_keyboard']
1151 1151
      * @var bool    $params ['selective']
1152 1152
      *
1153
-     * @return string
1153
+     * @return Keyboard
1154 1154
      */
1155 1155
     public static function replyKeyboardHide(array $params = [])
1156 1156
     {
@@ -1177,7 +1177,7 @@  discard block
 block discarded – undo
1177 1177
      * @var bool    $params ['force_reply']
1178 1178
      * @var bool    $params ['selective']
1179 1179
      *
1180
-     * @return string
1180
+     * @return Keyboard
1181 1181
      */
1182 1182
     public static function forceReply(array $params = [])
1183 1183
     {
@@ -1257,7 +1257,7 @@  discard block
 block discarded – undo
1257 1257
      *
1258 1258
      * @throws \InvalidArgumentException
1259 1259
      *
1260
-     * @return bool
1260
+     * @return null|boolean
1261 1261
      */
1262 1262
     public function isMessageType($type, $object)
1263 1263
     {
@@ -1362,7 +1362,7 @@  discard block
 block discarded – undo
1362 1362
      * Used primarily for file uploads.
1363 1363
      *
1364 1364
      * @param string $endpoint
1365
-     * @param array  $params
1365
+     * @param string  $params
1366 1366
      *
1367 1367
      * @throws TelegramSDKException
1368 1368
      *
Please login to merge, or discard this patch.
src/Helpers/Emojify.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      *
158 158
      * @param $line
159 159
      * @param $replace
160
-     * @param $delimiter
160
+     * @param string $delimiter
161 161
      *
162 162
      * @return mixed
163 163
      */
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      *
176 176
      * @param $line
177 177
      * @param $replace
178
-     * @param $delimiter
178
+     * @param string $delimiter
179 179
      *
180 180
      * @return mixed
181 181
      */
Please login to merge, or discard this patch.
src/Events/EmitsEvents.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     private $eventEmitter;
14 14
 
15 15
     /**
16
-     * @param EventInterface|string $event
16
+     * @param UpdateWasReceived $event
17 17
      * @throws \InvalidArgumentException
18 18
      * @return bool true if emitted, false otherwise
19 19
      */
Please login to merge, or discard this patch.