Completed
Pull Request — master (#174)
by
unknown
11:28
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/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/Api.php 2 patches
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.
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
      * @var bool       $params ['disable_web_page_preview']
817 817
      * @var string     $params ['reply_markup']
818 818
      *
819
-     * @return TelegramResponse
819
+     * @return Message
820 820
      */
821 821
     public function editMessageText(array $params)
822 822
     {
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
      * @var string     $params ['caption']
850 850
      * @var string     $params ['reply_markup']
851 851
      *
852
-     * @return TelegramResponse
852
+     * @return Message
853 853
      */
854 854
     public function editMessageCaption(array $params)
855 855
     {
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
      * @var string     $params ['inline_message_id']
881 881
      * @var string     $params ['reply_markup']
882 882
      *
883
-     * @return TelegramResponse
883
+     * @return Message
884 884
      */
885 885
     public function editMessageReplyMarkup(array $params)
886 886
     {
@@ -916,7 +916,7 @@  discard block
 block discarded – undo
916 916
      * @var string|null $params ['switch_pm_text']
917 917
      * @var string|null $params ['switch_pm_parameter']
918 918
      *
919
-     * @return bool
919
+     * @return TelegramResponse
920 920
      */
921 921
     public function answerInlineQuery(array $params = [])
922 922
     {
@@ -947,7 +947,7 @@  discard block
 block discarded – undo
947 947
      *
948 948
      * @throws TelegramSDKException
949 949
      *
950
-     * @return TelegramResponse
950
+     * @return Message
951 951
      */
952 952
     public function setWebhook(array $params)
953 953
     {
@@ -1050,7 +1050,7 @@  discard block
 block discarded – undo
1050 1050
      * @var bool    $params ['one_time_keyboard']
1051 1051
      * @var bool    $params ['selective']
1052 1052
      *
1053
-     * @return string
1053
+     * @return Keyboard
1054 1054
      */
1055 1055
     public function replyKeyboardMarkup(array $params)
1056 1056
     {
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
      * @var bool    $params ['hide_keyboard']
1078 1078
      * @var bool    $params ['selective']
1079 1079
      *
1080
-     * @return string
1080
+     * @return Keyboard
1081 1081
      */
1082 1082
     public static function replyKeyboardHide(array $params = [])
1083 1083
     {
@@ -1104,7 +1104,7 @@  discard block
 block discarded – undo
1104 1104
      * @var bool    $params ['force_reply']
1105 1105
      * @var bool    $params ['selective']
1106 1106
      *
1107
-     * @return string
1107
+     * @return Keyboard
1108 1108
      */
1109 1109
     public static function forceReply(array $params = [])
1110 1110
     {
@@ -1197,7 +1197,7 @@  discard block
 block discarded – undo
1197 1197
     /**
1198 1198
      * Detect Message Type Based on Update or Message Object.
1199 1199
      *
1200
-     * @param Update|Message $object
1200
+     * @param Message $object
1201 1201
      *
1202 1202
      * @return string|null
1203 1203
      */
@@ -1476,7 +1476,7 @@  discard block
 block discarded – undo
1476 1476
     /**
1477 1477
      * Emojify Given Property in Params.
1478 1478
      *
1479
-     * @param array  $params
1479
+     * @param string|boolean  $params
1480 1480
      * @param string $property
1481 1481
      *
1482 1482
      * @return mixed
Please login to merge, or discard this patch.