Completed
Push — master ( 60454e...1adc9d )
by Irfaq
02:18
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
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
      * @var bool       $params ['disable_web_page_preview']
828 828
      * @var string     $params ['reply_markup']
829 829
      *
830
-     * @return TelegramResponse
830
+     * @return Message
831 831
      */
832 832
     public function editMessageText(array $params)
833 833
     {
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
      * @var string     $params ['caption']
861 861
      * @var string     $params ['reply_markup']
862 862
      *
863
-     * @return TelegramResponse
863
+     * @return Message
864 864
      */
865 865
     public function editMessageCaption(array $params)
866 866
     {
@@ -891,7 +891,7 @@  discard block
 block discarded – undo
891 891
      * @var string     $params ['inline_message_id']
892 892
      * @var string     $params ['reply_markup']
893 893
      *
894
-     * @return TelegramResponse
894
+     * @return Message
895 895
      */
896 896
     public function editMessageReplyMarkup(array $params)
897 897
     {
@@ -920,7 +920,7 @@  discard block
 block discarded – undo
920 920
      *
921 921
      * @throws TelegramSDKException
922 922
      *
923
-     * @return TelegramResponse
923
+     * @return Message
924 924
      */
925 925
     public function setWebhook(array $params)
926 926
     {
@@ -1022,7 +1022,7 @@  discard block
 block discarded – undo
1022 1022
      * @var bool    $params ['one_time_keyboard']
1023 1023
      * @var bool    $params ['selective']
1024 1024
      *
1025
-     * @return string
1025
+     * @return Keyboard
1026 1026
      */
1027 1027
     public function replyKeyboardMarkup(array $params)
1028 1028
     {
@@ -1049,7 +1049,7 @@  discard block
 block discarded – undo
1049 1049
      * @var bool    $params ['hide_keyboard']
1050 1050
      * @var bool    $params ['selective']
1051 1051
      *
1052
-     * @return string
1052
+     * @return Keyboard
1053 1053
      */
1054 1054
     public static function replyKeyboardHide(array $params = [])
1055 1055
     {
@@ -1076,7 +1076,7 @@  discard block
 block discarded – undo
1076 1076
      * @var bool    $params ['force_reply']
1077 1077
      * @var bool    $params ['selective']
1078 1078
      *
1079
-     * @return string
1079
+     * @return Keyboard
1080 1080
      */
1081 1081
     public static function forceReply(array $params = [])
1082 1082
     {
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
     /**
1170 1170
      * Detect Message Type Based on Update or Message Object.
1171 1171
      *
1172
-     * @param Update|Message $object
1172
+     * @param Message $object
1173 1173
      *
1174 1174
      * @return string|null
1175 1175
      */
@@ -1472,7 +1472,7 @@  discard block
 block discarded – undo
1472 1472
      * @var string|null $params ['switch_pm_text']
1473 1473
      * @var string|null $params ['switch_pm_parameter']
1474 1474
      *
1475
-     * @return bool
1475
+     * @return TelegramResponse
1476 1476
      */
1477 1477
     public function answerInlineQuery(array $params = [])
1478 1478
     {
@@ -1486,7 +1486,7 @@  discard block
 block discarded – undo
1486 1486
     /**
1487 1487
      * Emojify Given Property in Params.
1488 1488
      *
1489
-     * @param array  $params
1489
+     * @param string|boolean  $params
1490 1490
      * @param string $property
1491 1491
      *
1492 1492
      * @return mixed
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,16 +6,15 @@
 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\HttpClients\GuzzleHttpClient;
9
+use Telegram\Bot\Helpers\Emojify;
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
-use Telegram\Bot\Helpers\Emojify;
19 18
 
20 19
 /**
21 20
  * Class Api.
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.